Configuration
The required configuration properties are added to the hdr_fhir.yaml file.
load_ig_on_server_startup: false
If this property is set to true, the HDR-FHIR server dynamically loads configured IG packages during FHIR server startup. By default this property is set to false.
implementationguides:
us_core:
name: hl7.fhir.us.core
version: 6.0.0
url: http://hl7.org/fhir/us/core/STU6/package.tgz
To load a different IG, change the url, name, and version to point to the specific IG package location, add one more section like above that includes name, version and url.
install_transitive_ig_dependencies: false
This property allows loading of dependencies required by the IG. Usually, this value is set to false as most of the IGs depends on hl7 fhir core which is implied and doesn’t require loading. Set this value to false.
validation_repository_enabled: false
If this property set to true, the incoming FHIR resource is validated against a configured profile. Set this value to false to disable repository validation.
Note:
Make sure that the incoming message contains meta tag with profile information to be validated.Sample Message:
{
"resourceType" : "Patient",
"id" : "patient-example-female",
"meta": {
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
]
},
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Martha DeLarosa </b> female, DoB: 1992-05-01 ( id: 574687583)</p></div>"
},
"identifier" : [
{
"system" : "urn:oid:2.16.840.1.113883.2.4.6.3",
"value" : "574687583"
}
],
"active" : true,
"name" : [
{
"family" : "DeLarosa",
"given" : [
"Martha"
]
}
],
"telecom" : [
{
"system" : "phone",
"value" : "+31788700800",
"use" : "home"
}
],
"gender" : "female",
"birthDate" : "1992-05-01",
"address" : [
{
"line" : [
"Laan Van Europa 1600"
],
"city" : "Dordrecht",
"postalCode" : "3317 DB",
"country" : "NL"
}
],
"contact" : [
{
"relationship" : [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0131",
"code": "N"
}
]
}
],
"name" : {
"family" : "Mum",
"given" : [
"Martha"
]
},
"telecom" : [
{
"system" : "phone",
"value" : "+33-555-20036",
"use" : "home"
}
],
"address" : {
"line" : [
"Promenade des Anglais 111"
],
"city" : "Lyon",
"postalCode" : "69001",
"country" : "FR"
}
}
]
}
Parent topic: Repository Validation Support