This example uses an extension to show the patient's birth sex.
XML View
<Patient xmlns="http://hl7.org/fhir">
<id value="UKCore-Patient-Extension-BirthSex-Example" />
<extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex">
<valueCode value="F" />
</extension>
</Patient>
JSON View
{
"resourceType": "Patient",
"id": "UKCore-Patient-Extension-BirthSex-Example",
"extension": [
{
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex",
"valueCode": "F"
}
]
}