Hi All,
Problem: I have patient data that I want to put in my FHIR server, and I want to know the proper way to convert codes from source to fhir (target).
For example, for patient gender, the source uses codes: 1 = male, 2 = female, and provides a data dictionary. What is the proper way to store this in my fhir server, or said another way, what should an instance of patient look like? Ideally i would have both the number and string value saved.
One solution is to do some conversion from “1” to “male” prior to post-ing it to the server in Patient.gender but than I lose the source code “1”.
Is there a way to do something like this for each patient instance:
{
“resourceType” : “Patient”,
“gender” : {
“coding”: [ {
“system”: “source url”,
“code”: 1
},
{“system”: “http://hl7.org/fhir/ValueSet/administrative-gender”,
“code”: “male”
}
]
}
}
The problem I see with this is that patient.gender is supposed to be a code (string) not a coding.
Or, do I have to create my own concept list or concept map? if so could you provide a quick example?