ConceptMap read
const options = {method: 'GET'};
fetch('https://fhir.omophub.com/fhir/{version}/ConceptMap/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://fhir.omophub.com/fhir/{version}/ConceptMap/{id}import requests
url = "https://fhir.omophub.com/fhir/{version}/ConceptMap/{id}"
response = requests.get(url)
print(response.text){
"resourceType": "ConceptMap",
"id": "EncounterClass",
"url": "http://hl7.org/fhir/uv/omop/ConceptMap/EncounterClass",
"version": "1.0.0",
"status": "active",
"group": [
{
"source": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"target": "https://fhir-terminology.ohdsi.org",
"element": [
{
"code": "IMP",
"target": [
{
"code": "9201",
"display": "Inpatient Visit",
"equivalence": "equivalent"
}
]
},
{
"code": "OBSENC",
"target": [
{
"code": "262",
"display": "Emergency Room and Inpatient Visit",
"equivalence": "narrower",
"comment": "The source code does not necessarily mean that the patient has moved to an inpatient visit"
}
]
}
]
}
]
}
ConceptMap read
Read a single HL7 FHIR-to-OMOP IG ConceptMap by id.
ConceptMap read
const options = {method: 'GET'};
fetch('https://fhir.omophub.com/fhir/{version}/ConceptMap/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://fhir.omophub.com/fhir/{version}/ConceptMap/{id}import requests
url = "https://fhir.omophub.com/fhir/{version}/ConceptMap/{id}"
response = requests.get(url)
print(response.text){
"resourceType": "ConceptMap",
"id": "EncounterClass",
"url": "http://hl7.org/fhir/uv/omop/ConceptMap/EncounterClass",
"version": "1.0.0",
"status": "active",
"group": [
{
"source": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"target": "https://fhir-terminology.ohdsi.org",
"element": [
{
"code": "IMP",
"target": [
{
"code": "9201",
"display": "Inpatient Visit",
"equivalence": "equivalent"
}
]
},
{
"code": "OBSENC",
"target": [
{
"code": "262",
"display": "Emergency Room and Inpatient Visit",
"equivalence": "narrower",
"comment": "The source code does not necessarily mean that the patient has moved to an inpatient visit"
}
]
}
]
}
]
}
Overview
GET /fhir/{version}/ConceptMap/{id} returns a single HL7 FHIR-to-OMOP IG ConceptMap as a FHIR ConceptMap resource. The {id} is the IG artifact id, e.g. GenderClass, EncounterClass, ConditionStatusConcepts, ImmunizationVaccine.
Path Parameters
string
default:"r4"
string
required
Stable administrative ConceptMap ID.
Request
curl "https://fhir.omophub.com/fhir/r4/ConceptMap/EncounterClass" \
-H "Authorization: Bearer oh_your_api_key"
Response
Response Fields
string
Always
ConceptMap.string
Stable map ID.
string
Canonical map URL.
string
Map version.
string
Publication status.
boolean
Whether the map is experimental.
array
Source-to-target mapping groups.
string
Source system URI.
string
Target system URI.
array
Source elements with
code, optional display, and target mappings.array
Targets with
code, optional display, version-specific
equivalence/relationship, and optional comment.{
"resourceType": "ConceptMap",
"id": "EncounterClass",
"url": "http://hl7.org/fhir/uv/omop/ConceptMap/EncounterClass",
"version": "1.0.0",
"status": "active",
"group": [
{
"source": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"target": "https://fhir-terminology.ohdsi.org",
"element": [
{
"code": "IMP",
"target": [
{
"code": "9201",
"display": "Inpatient Visit",
"equivalence": "equivalent"
}
]
},
{
"code": "OBSENC",
"target": [
{
"code": "262",
"display": "Emergency Room and Inpatient Visit",
"equivalence": "narrower",
"comment": "The source code does not necessarily mean that the patient has moved to an inpatient visit"
}
]
}
]
}
]
}
On
/fhir/r5/ and /fhir/r6/, target entries use the FHIR R5 relationship
code (e.g. source-is-broader-than-target) instead of R4 equivalence.
Source codes the IG leaves unmapped appear as target-less elements.404 OperationOutcome.
See also
- ConceptMap search - list all hosted maps
Was this page helpful?