2. Examples

Patient
This is the resource in XML:
<Patient xmlns="http://hl7.org/fhir">
<id value="ACME-base-patient-VALID" />
<profile value="https://fake-acme.org/fhir/StructureDefinition/ACME-base-patient" />
</meta>
<extension url="http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex">
<valueCode value="F" />
</extension>
<use value="usual" />
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
<display value="Medical Record Number" />
</coding>
<text value="Medical Record Number" />
</type>
<system value="http://hospital.smarthealthit.org" />
<value value="1032702" />
</identifier>
<use value="usual" />
<system value="https://fake-acme.org/fhir/NamingSystem/Patient-Identifier" />
<value value="1032702" />
</identifier>
<active value="true" />
<family value="Baba" />
<given value="Amy" />
<given value="K." />
</name>
<system value="phone" />
<value value="555-555-5555" />
<use value="home" />
</telecom>
<system value="email" />
<value value="amy.shaw@example.com" />
</telecom>
<gender value="female" />
<birthDate value="2010-02-20" />
<line value="49 Meadow St" />
<city value="Mounds" />
<state value="OK" />
<postalCode value="74047" />
<country value="US" />
</address>
</Patient>
This is the resource in JSON:
{
"resourceType": "Patient",
"id": "ACME-base-patient-VALID",
"meta": {
"profile": [
"https://fake-acme.org/fhir/StructureDefinition/ACME-base-patient"
]
},
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex",
"valueCode": "F"
}
],
{
"use": "usual",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR",
"display": "Medical Record Number"
}
],
"text": "Medical Record Number"
},
"system": "http://hospital.smarthealthit.org",
"value": "1032702"
},
{
"use": "usual",
"system": "https://fake-acme.org/fhir/NamingSystem/Patient-Identifier",
"value": "1032702"
}
],
"active": true,
"name": [
{
"family": "Baba",
"given": [
"Amy",
"K."
]
}
],
"telecom": [
{
"system": "phone",
"value": "555-555-5555",
"use": "home"
},
{
"system": "email",
"value": "amy.shaw@example.com"
}
],
"gender": "female",
"birthDate": "2010-02-20",
"address": [
{
"line": [
"49 Meadow St"
],
"city": "Mounds",
"state": "OK",
"postalCode": "74047",
"country": "US"
}
]
}