Stream: hapi
Topic: InstanceValidator
Felix Völker (Nov 15 2021 at 15:10):
Hello everyone,
I am new into FHIR and HAPI, so it's may a stupid question.
I have installed the starter jpa-server from github and I am now trying to implement an Instance Validator. For my project, i need to validate against the implemantation guides of the so called "Kerndatensätze" of the german Medicine Informatics Initiative.
I somehow don't understand how i implement a custom Instance Validator. Do i just create an File in the src-Folder or do i have to implement an externsion for it? I readed the documentation a several times, but i just don't get it.
Can someone help me?
Best regards,
Felix Völker
Patrick Werner (Nov 15 2021 at 15:51):
Hi Felix, you just have to add the IG into the application.yaml: https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/master/src/main/resources/application.yaml
Patrick Werner (Nov 15 2021 at 15:52):
implementationguides: ist the key you have to populate
Felix Völker (Nov 29 2021 at 16:47):
Hello Patrick,
Thanks for your help. I struggle to upload more than one IGs.
I updated the application.yaml like this
....
implementationguides:
MI-I KDS Fall:
name: de.medizininformatikinitiative.kerndatensatz.fall
version: 1.0.1
MI-I KDS Person:
name: de.medizinofmatikinitiative.kerndatensatz.person
version: 1.0.14
....
But I get the following error:
ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException: Unable to locate package de.medizininformationinitiative.kerndatensatz.person#1.0.14\"}}"
DId i made an syntax error in my application.yaml ?
Patrick Werner (Dec 01 2021 at 13:17):
@Shubham gupta please don't hijack existing threads.
Patrick Werner (Dec 01 2021 at 16:39):
could you share your application.yaml (part with IG)? Your statement is looking good. But i'm currently getting errors on loading these packages as well.
Patrick Werner (Dec 01 2021 at 16:41):
Felix Völker (Dec 03 2021 at 09:41):
Couldn't copy the code, because i work on an extern vm. But here the Snippet of the application.yaml:
grafik.png
And here also the error i get, if i deploy the ROOT.war on the wildfly:
grafik.png
Patrick Werner (Dec 03 2021 at 10:15):
i think this is related with the issue i mentioned in the linked thread
Felix Völker (Dec 03 2021 at 10:35):
Yes, I think so too
Last updated: Apr 12 2022 at 19:14 UTC