Let's say below is the FHIR model I have in C# for Patient resource.
var pat = new Patient();
var name = new HumanName().WithGiven("Christopher").WithGiven("C.H.").AndFamily("Parks");
name.Prefix = new string[] { "Mr." };
name.Use = HumanName.NameUse.Official;
How do I convert this into FHIR JSON Schema? Basically I want to serialize it. I am expecting the output like below
{
"resourceType": "Patient",
"id": "xcda",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"></div>"
},
"active": true,
"name": [
{
"family": "Levin",
"given": [
"Henry"
]
}
],
"gender": "male",
"birthDate": "1932-09-24",
"managingOrganization": {
"reference": "Organization/2.16.840.1.113883.19.5",
"display": "Good Health Clinic"
}
}
Also, I want to know is it possible to achieve this without using any FHIR external servers?