This example uses an extension to show the patient's birth sex.
XML View
<Patient xmlns="http://hl7.org/fhir">
<id value="UKCore-Extension-BirthSex-Example" />
<text>
<status value="additional" />
--- We have skipped the narrative for better readability of the resource ---
</text>
<extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex">
<valueCodeableConcept>
<coding>
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-BirthSex" />
<code value="F" />
<display value="Female" />
</coding>
</valueCodeableConcept>
</extension>
</Patient>
JSON View
{
"resourceType": "Patient",
"id": "UKCore-Extension-BirthSex-Example",
"text": {
"status": "additional",
--- We have skipped the narrative for better readability of the resource ---
},
"extension": [
{
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex",
"valueCodeableConcept": {
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-BirthSex",
"code": "F",
"display": "Female"
}
]
}
}
]
}