FHIR Chat · Validation - multiple CodeSystems and InMemoryTerminologySer · hapi

Stream: hapi

Topic: Validation - multiple CodeSystems and InMemoryTerminologySer


view this post on Zulip Kevin Mayfield (Aug 07 2020 at 10:48):

Is this ValueSet correct https://simplifier.net/electronicprescriptionservice/valueset-medicationrequest-course-of-therapy
It is performing a union of two CodeSystems.

It validates successfully using RemoteTerminologyServiceValidationSupport but with InMemoryTerminologyServerValidationSupport

It creates this error:
{
"severity": "error",
"code": "processing",
"diagnostics": "The Coding provided is not in the value set https://fhir.nhs.uk/R4/ValueSet/medicationrequest-course-of-therapy, and a code is required from this value set. (error message = Validation failed)",
"location": [ "Bundle.entry[5].resource.ofType(MedicationRequest).courseOfTherapyType.coding[0]", "Line 1, Col 7390" ]
}

Have looked at the debug and it doesn't seem to try to use the second CodeSystem.

view this post on Zulip Kevin Mayfield (Aug 07 2020 at 10:49):

We want to use in the InMemory Validation for performance reasons (and UK terminology server ETA is a few months away)

view this post on Zulip Grahame Grieve (Aug 07 2020 at 12:16):

does this happen in the standalone java validator?

view this post on Zulip Kevin Mayfield (Aug 07 2020 at 13:51):

Yes Test 1,

Error @ MedicationRequest.courseOfTherapyType.coding[0] (line 60, col17) : The Coding provided is not in the value set https://fhir.nhs.uk/R4/ValueSet/medicationrequest-course-of-therapy, and a code is required from this value set. (error message = Not in value set https://fhir.nhs.uk/R4/ValueSet/medicationrequest-course-of-therapy)

using -version 4.0.1 -tx https://r4.ontoserver.csiro.au/fhir -ig https://packages.simplifier.net/UK.DM.r4/-/UK.DM.r4-0.0.27-dev.tgz -profile https://fhir.nhs.uk/R4/StructureDefinition/DM-MedicationRequest

view this post on Zulip Kevin Mayfield (Aug 07 2020 at 14:02):

same with default tx - no errors when tx disabled

view this post on Zulip Kevin Mayfield (Aug 10 2020 at 12:13):

Was an issue with the IG missing a file (CodeSystem).


Last updated: Apr 12 2022 at 19:14 UTC