Hello Team,
We are using Java 21 and HAPI-FHIR validator 7.4.0.
We are validating using packages as described in section 14.2.5 of the HAPI-FHIR documentation (
https://hapifhir.io/hapi-fhir/docs/validation/instance_validator.html#packages).
We use FHIR Bundle 4.0.1. When we validate the FHIR Bundle, it throws a few errors related to SNOMED and LOINC.
Here are some errors and the corresponding FHIR input sections that cause the errors:
Error 1:
`
"diagnostics": "None of the codings provided are in the value set 'US Core Condition Codes' (
http://hl7.org/fhir/us/core/ValueSet/us-core-condition-code|7.0.0), and a coding from this value set is required) (codes =
http://snomed.info/sct#733423003,
http://hl7.org/fhir/sid/icd-10-cm#Z59.4)",
"location": [
"Bundle.entry[5].resource/*Condition/ConditionFoodInsecurityExample*/.code",
"Line[1] Col[18464]"
]
`
FHIR input section:
`
"category" : [{
"coding" : [{
"system" : "
http://hl7.org/fhir/us/core/CodeSystem/condition-category",
"code" : "health-concern",
"display" : "Health Concern"
}]
},
{
"coding" : [{
"system" : "
http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes",
"code" : "food-insecurity",
"display" : "Food Insecurity"
}]
}],
"code" : {
"coding" : [{
"system" : "
http://snomed.info/sct",
"code" : "733423003",
"display" : "Food insecurity"
},
{
"system" : "
http://hl7.org/fhir/sid/icd-10-cm",
"code" : "Z59.4",
"display" : "Lack of adequate food"
}]
}
`
Error 2:
`
{
"location": {
"line": 1,
"column": 22845,
"diagnostics": "Bundle.entry[6].resource/*Observation/AssessmentResponseQuestionGrouper1*/.code"
},
"message": "None of the codings provided are in the value set 'LOINC Codes' (
http://hl7.org/fhir/ValueSet/observation-codes|4.0.1), and a coding from this value set is required) (codes =
http://loinc.org#96777-8)",
"severity": "ERROR"
}
`
FHIR input section:
`
"category" : [{
"coding" : [{
"system" : "
http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes",
"code" : "housing-instability",
"display" : "Housing Instability"
},
{
"system" : "
http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes",
"code" : "inadequate-housing",
"display" : "Inadequate Housing"
},
{
"system" : "
http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes",
"code" : "food-insecurity",
"display" : "Food Insecurity"
}]
},
{
"coding" : [{
"system" : "
http://terminology.hl7.org/CodeSystem/observation-category",
"code" : "social-history"
}]
},
{
"coding" : [{
"system" : "
http://terminology.hl7.org/CodeSystem/observation-category",
"code" : "survey"
}]
}],
"code" : {
"coding" : [{
"system" : "
http://loinc.org",
"code" : "96777-8",
"display" : "Accountable health communities (AHC) health-related social needs screening (HRSN) tool"
}]
}
`
We would appreciate any guidance on addressing these validation issues.
Thanks,
Vinod