Examples
Examples Usage
Whilst every effort has been made to ensure that the examples are correct and useful, they are not a normative part of the specification.
Example - An active FGM flag
Important: This page is under development by NHS England
<Flag xmlns="http://hl7.org/fhir">
<id value="FGM-ActiveFlag-Example" />
<system value="http://snomed.info/sct" />
<code value="902961000000107" />
<display value="Family history of FGM (female genital mutilation)" />
</coding>
<text value="Family history of FGM (female genital mutilation)" />
</code>
<system value="https://fhir.nhs.uk/Id/nhs-number" />
<value value="9000000009" />
</identifier>
</subject>
<start value="2019-12-10" />
</period>
</Flag>
{
"id": "FGM-ActiveFlag-Example",
{
"system": "http://snomed.info/sct",
"code": "902961000000107",
"display": "Family history of FGM (female genital mutilation)"
}
],
"text": "Family history of FGM (female genital mutilation)"
},
"system": "https://fhir.nhs.uk/Id/nhs-number",
}
},
}
}
Example - Invalid NHS number
Important: This page is under development by NHS England
<id value="FGM-InvalidNHSNumber-Example" />
<system value="https://fhir.nhs.uk/CodeSystem/England-SpineErrorOrWarningCode" />
<code value="INVALID_VALUE" />
</coding>
</details>
</issue>
</OperationOutcome>
{
"id": "FGM-InvalidNHSNumber-Example",
{
{
"system": "https://fhir.nhs.uk/CodeSystem/England-SpineErrorOrWarningCode",
}
]
},
}
]
}
Example - FGM flag found
Important: This page is under development by NHS England
<Bundle xmlns="http://hl7.org/fhir">
<id value="FGM-BundleWithFoundFlag-Example" />
<type value="searchset" />
<url value="https:baseurl/Flag?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|9000000009" />
</link>
<fullUrl value="https://baseurl/Flag/218755" />
<Flag>
<id value="a6a6a92a-8247-4250-b1c7-10cda16f0310" />
<system value="http://snomed.info/sct" />
<code value="902961000000107" />
<display value="Family history of FGM (female genital mutilation)" />
</coding>
<text value="Family history of FGM (female genital mutilation)" />
</code>
<system value="https://fhir.nhs.uk/Id/nhs-number" />
<value value="9000000009" />
</identifier>
</subject>
<start value="2019-12-10" />
</period>
</Flag>
</resource>
</search>
</entry>
</Bundle>
{
"id": "FGM-BundleWithFoundFlag-Example",
{
"url": "https:baseurl/Flag?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|9000000009"
}
],
{
"fullUrl": "https://baseurl/Flag/218755",
"id": "a6a6a92a-8247-4250-b1c7-10cda16f0310",
{
"system": "http://snomed.info/sct",
"code": "902961000000107",
"display": "Family history of FGM (female genital mutilation)"
}
],
"text": "Family history of FGM (female genital mutilation)"
},
"system": "https://fhir.nhs.uk/Id/nhs-number",
}
},
}
},
}
}
]
}
Example - FGM flag not found
Important: This page is under development by NHS England
<Bundle xmlns="http://hl7.org/fhir">
<id value="FGM-BundleWithNoFlag-Example" />
<type value="searchset" />
<url value="https:baseurl/Flag?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|9000000009" />
</link>
</Bundle>
{
"id": "FGM-BundleWithNoFlag-Example",
{
"url": "https:baseurl/Flag?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|9000000009"
}
]
}
Example - A removed FGM flag
Important: This page is under development by NHS England
<Flag xmlns="http://hl7.org/fhir">
<id value="FGM-RemovedFlag-Example" />
<extension url="https://fhir.nhs.uk/StructureDefinition/Extension-England-FGMRemovalReason">
<system value="https://fhir.nhs.uk/CodeSystem/England-FGMRemovalReason" />
<display value="Added in error - this child does not have a family history of FGM" />
</coding>
</valueCodeableConcept>
</extension>
<status value="entered-in-error" />
<system value="http://snomed.info/sct" />
<code value="902961000000107" />
<display value="Family history of FGM (female genital mutilation)" />
</coding>
<text value="Family history of FGM (female genital mutilation)" />
</code>
<system value="https://fhir.nhs.uk/Id/nhs-number" />
<value value="9000000009" />
</identifier>
</subject>
</Flag>
{
"id": "FGM-RemovedFlag-Example",
{
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-England-FGMRemovalReason",
{
"system": "https://fhir.nhs.uk/CodeSystem/England-FGMRemovalReason",
"display": "Added in error - this child does not have a family history of FGM"
}
]
}
}
],
{
"system": "http://snomed.info/sct",
"code": "902961000000107",
"display": "Family history of FGM (female genital mutilation)"
}
],
"text": "Family history of FGM (female genital mutilation)"
},
"system": "https://fhir.nhs.uk/Id/nhs-number",
}
}
}