Stream: implementers
Topic: FHIR Validation jar - MedicationRequest
Joyce Dunlop (Oct 01 2018 at 19:32):
Good Afternoon,
During the connectathon this past weekend my group was working to validate a MedicationRequest and got an error from the org.hl7.fhir.validator.jar. when we added the requester to the MedicationRequest resource .
"requester": {
"agent": {
"reference": "Practitioner/cc-prac-carlson-john",
"display": "Dr. John Carlson, MD"
}
},
Given:
Using the attached bat file and JSON bundle files (See below). Cmd line execution of the jar gives the expected OperationalOutcome.
When called from within a SpringBoot application is when the error is returned.
SpringBoot application has a local version of the igpack that is added to the validationEngine = new ValidationEngine(idPackPath);
Other validations have been successful using the SpringBoot application.
Error:
java.lang.Error: Not done yet - resolve Practitioner/cc-prac-carlson-john locally
Trouble shooting steps:
Grabbed the latest validation jar from https://build.fhir.org/downloads.html with the same error result. (3.4.0 to 3.6.0)
Added the Practicitioner resource to the bundle with the same error.
Removed the line "reference": "Practitioner/cc-prac-carlson-john",
resulting in a good Operation Outcome response.
Looked into the validation jar readme and do not see a way to turn off any potential referential integrity checks that may be happening.
Questions:
I did grab the latest validation jar but still have a previously downloaded igpack embedded into the SpringBoot app. Is there is a relationship between the validation jar and the igpack, if so where can I download the latest igpack?
Any idea on what is special about the requester.agent.resource?
Thanks in advance,
Joyce
validate_MedBundleBetsy.bat
MedBundleBetsy.json FHIR Validation jar - MedicationRequest
Grahame Grieve (Oct 01 2018 at 22:22):
the validator doesn't use the igpack anymore. how are you invoking it in the spring framework?
Joyce Dunlop (Oct 02 2018 at 13:29):
The jar readme still lists the igpack in -defn and -ig. The stu3 ValidationEngine still looks like it accepting an igpack? if the direction has changed is there something published I can read?
Grahame Grieve (Oct 02 2018 at 14:11):
do not use the stu3 valdiator. It's no longer maintained. Use the build.fhir.org validator, and see the instructions here: http://wiki.hl7.org/index.php?title=Using_the_FHIR_Validator
Joyce Dunlop (Oct 02 2018 at 14:15):
Has the source code moved from svn to github?
Grahame Grieve (Oct 02 2018 at 14:21):
yes it has now
Grahame Grieve (Oct 02 2018 at 14:21):
do we have a hanging reference somewhere?
Joyce Dunlop (Oct 02 2018 at 14:21):
Not that I know of. Just had the svn connected locally on my computer. Thanks!!
Grahame Grieve (Oct 02 2018 at 14:26):
k
Joyce Dunlop (Oct 02 2018 at 15:34):
Grahame, What do you mean the validator doesn't use the the igpack anymore? I still see reference is in the R4 Validation and ValidationEngine to the igpacks. what is the preferred resource package.tgz?
Last updated: Apr 12 2022 at 19:14 UTC