Can I somehow add custom field to the Patient resource and parse it? #1835
-
Hello everyone! I want to add property, lets say; "customId", into Patient resource json. And I want to use Hl7.Fhir.Serialization.FhirJsonParser() to parse it. How can I make it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @dronSamogon, Adding extra properties to the FHIR json is not allowed: the FHIR standard is built for interoperability and changing the json schema will disturb this interoperability. You can extend a FHIR resource by profiling it: https://www.hl7.org/fhir/profiling.html. But in your case you can also use the Patient property Identifier. This is a list of identifiers. In your case it looks like this: {
"resourceType": "Patient",
"id": "example",
"identifier": [
{
"use": "usual",
"system": "http://your.system/customid",
"value": "123123"
}
]
} |
Beta Was this translation helpful? Give feedback.
Hi @dronSamogon,
Adding extra properties to the FHIR json is not allowed: the FHIR standard is built for interoperability and changing the json schema will disturb this interoperability. You can extend a FHIR resource by profiling it: https://www.hl7.org/fhir/profiling.html.
But in your case you can also use the Patient property Identifier. This is a list of identifiers. In your case it looks like this: