Stream: implementers
Topic: HL7 Validator
Andrew Cho (Nov 30 2020 at 18:08):
Hello, I'm working with the Hl7 fhir validator (http://hl7.org/fhir/validator/), however, I'm experiencing some issues in running the program. I receive this error:
Error:
Failed to resolve package hl7.fhir.r4.core#4.0.1 from server: http://packages2.fhir.org/packages
Error connecting to build server - running without build (build.fhir.org)
Exception in thread "main" org.hl7.fhir.exceptions.FHIRException: Unable to resolve package id hl7.fhir.r4.core#4.0.1
Going to the packages url at: http://packages2.fhir.org/packages , I am not able to find the package id (hl7.fhir.r4.core#4.0.1).
Would anyone know how to resolve this?
Lloyd McKenzie (Nov 30 2020 at 18:41):
There's a certificate problem with the FHIR server right now. HQ is working on it. I suspect that's the cause of your issue.
jason chow (Dec 07 2020 at 20:09):
Piggybacking this topic.
I'm attempting to use the validator for the first time, and it's encountering a null ref exception.
not sure what i've done wrong; it's possible i have the wrong uri for the ig or the profile.
java -jar validator_cli.jar -version 1.0.0 -ig http://build.fhir.org/ig/HL7/carin-bb -profile http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit -html-output test-output-1.html
validator console output
FHIR Validation tool Version 5.2.9 (Git# 6907a004bed8). Built 2020-12-06T22:31:33.68Z (21 hours old)
Java: 1.8.0_202 from C:\Program Files\Java\jre1.8.0_202 on amd64 (64bit). 3607MB available
Paths: Current = C:\Users\...\Interop\validation, Package Cache = C:\Users\...\.fhir\packages
Params: -version 1.0.0 -ig http://build.fhir.org/ig/HL7/carin-bb -profile http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit -html-output test-output-1.html
Loading
Load FHIR v1.0 from hl7.fhir.r2.core#1.0.2 - 3378 resources (00:05.0053)
Load hl7.terminology#2.0.0 - 3749 resources (00:01.0612)
Terminology server http://tx.fhir.org - Version 1.9.367 (00:02.0489)
Load http://build.fhir.org/ig/HL7/carin-bb+ .. load IG from hl7.fhir.us.core#3.1.1
- 237 resources (00:08.0330)
Get set... go (00:00.0023)
Validating
Profiles: [http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit]
Done. Times: Loading: 00:17.0753
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.r5.utils.ToolingExtensions.getExtension(ToolingExtensions.java:498)
at org.hl7.fhir.r5.utils.ToolingExtensions.readStringExtension(ToolingExtensions.java:347)
at org.hl7.fhir.validation.cli.services.ValidationService.displayOperationOutcome(ValidationService.java:246)
at org.hl7.fhir.validation.cli.services.ValidationService.validateSources(ValidationService.java:85)
at org.hl7.fhir.validation.ValidatorCli.doValidation(ValidatorCli.java:237)
at org.hl7.fhir.validation.ValidatorCli.main(ValidatorCli.java:159)
Lloyd McKenzie (Dec 07 2020 at 23:24):
@Grahame Grieve
Grahame Grieve (Dec 08 2020 at 01:20):
well, it's not ok that you got that outcome, and I fixed that, but its not clear what you're trying to validate from the command that provided - what are you actually trying to achieve?
jason chow (Dec 08 2020 at 13:23):
I was trying to validate a CARIN EoB profile from a json file. Looking at it now i somehow failed to provide a file for the validator to to consume.
Thanks @Grahame Grieve
Yunwei Wang (Dec 08 2020 at 14:46):
@jason chow You can try inferno.healthit.gov/validator which is a web app build on top of FHIR validator JAR
jason chow (Dec 08 2020 at 18:23):
Thanks @Yunwei Wang I saw that in another thread and gave it a try. I tried 3 times with the same eob json and the web app responded with a timeout each time.
Yunwei Wang (Dec 08 2020 at 18:34):
I will send pm
Nathan Loyer (Dec 11 2020 at 18:07):
I'm running into a cert issue when trying to generate the terminology definitions for inferno - onc program edition. I think it might be related to the cert issue that started this thread. Related issue documented in github here: https://github.com/onc-healthit/inferno-program/issues/209
Yunwei Wang (Dec 11 2020 at 18:41):
@Nathan Loyer Can you move this discussion to #inferno stream? We can help you there.
Nathan Loyer (Dec 11 2020 at 19:08):
sure, thanks
Keerthivasan Ramanathan (Dec 16 2020 at 15:23):
I have a question. Do we have to profile a resource if I'm going to use an extension in an element
I'm trying to use patient-relatedPerson extension in Patient.contact field. The Validation fails..Please help with your guidance
Keerthivasan Ramanathan (Dec 16 2020 at 15:23):
this is the below error message :
[{"path":"Patient.contact[0]","message":"pat-1: SHALL at least contain a contact's details or a reference to an organization [name.exists() or telecom.exists() or address.exists() or organization.exists()]"},{"path":"Patient.contact[0]","message":"pat-1: SHALL at least contain a contact's details or a reference to an organization [name.exists() or telecom.exists() or address.exists() or organization.exists()]"}]}
Yunwei Wang (Dec 16 2020 at 15:54):
If you don't include a profile, the validator will throw a warning about unknown extension. The error you provided is different. Patient.contact SHALL have at least a name, or a telecom, or address, or organization. That is the minimum requirement. You can add additional extension but you cannot bypass the minimum requirement.
Last updated: Apr 12 2022 at 19:14 UTC