We’re working on patterns for making sure our document meta model is mapped to incoming openEHR compositions. One such element concerns location
code. An example in structured JSON:
"event_context": [
{
"start_time": [
"2021-04-19T14:36:49.691+01:00"
],
"setting": [
{
"|code": "232",
"|value": "secondary medical care",
"|terminology": "openehr"
}
],
"_location":[
{
"|id": "RQFH5",
"|id_scheme": "LocationCode",
"|id_namespace": "wrds.wales.nhs",
"|name": "Velindre Cancer Center"
}
],
"_health_care_facility": [
{
"|id": "RQF",
"|id_scheme": " OrganisationCode ",
"|id_namespace": "wrds.wales.nhs",
"|name": "Velindre NHS Trust"
}
],
"_participation": {
"|id": "123456F",
"|id_scheme": "GMC",
"|id_namespace": "uk.org.gmc",
"|name": "Dr Jake Jones",
"|function": "Attending Clinician"
}
}
]
The above element from "_location":
gets stripped out and stored as a string. Is there a reason for this? As a workaround we would need to store the above elsewhere but I would like to find out what the preferred pattern should be?