Stream: Da+Vinci+PDex+Plan-Net
Topic: Incorrect urls text in IG
Chetan Jain (Dec 04 2020 at 14:25):
@Saul Kravitz
Seeing url text is different than actual url in IG at many places. For example, in practitioner Role profile, for newpatients extension below url is mentioned -
New Patients URL: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/newpatients
But we can click on this, it opens up below url -
https://build.fhir.org/ig/HL7/davinci-pdex-plan-net/StructureDefinition-newpatients.html
Is there any reason behind this behavior ? Noticed it at many places and this is causing FHIR Validator tool to thrwo 'URL could not resolve error'
Please update what is correct and which url should be used in actual response.
Thanks!!
Saul Kravitz (Dec 04 2020 at 14:52):
Everything looks right to me.
The url for the extension is http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/newpatients. The url of the html page is different (Structure-definition), but that is fine. Validator is run on all IG content without errors.
Get Outlook for iOS<https://aka.ms/o0ukef>
Chetan Jain (Dec 07 2020 at 11:11):
@Saul Kravitz Validator is giving errors like below -
URL value 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/qualification' does not resolve
Saul Kravitz (Dec 07 2020 at 14:04):
Which version of the IG are you trying to validate against?
Chetan Jain (Dec 08 2020 at 13:44):
@Saul Kravitz - Using below command
java -jar validator_cli.jar response.json -version 4.0.1 -ig hl7.fhir.us.davinci-pdex-plan-net
Saul Kravitz (Dec 08 2020 at 14:22):
Just to be sure, try adding the version number:
java -jar validator_cli.jar response.json -version 4.0.1 -ig hl7.fhir.us.davinci-pdex-plan-net#1.0.0
Chetan Jain (Dec 08 2020 at 15:20):
@Saul Kravitz
Getting this error when running with IG version -
Loading
Load FHIR v4.0 from hl7.fhir.r4.core#4.0.1 - 4575 resources (00:07.0153)
Terminology server http://tx.fhir.org - Version 1.9.367 (00:24.0772)
2020-12-08 20:46:15.907 [main] INFO o.h.f.u.npm.BasePackageCacheManager [BasePackageCacheManager.java:79] Failed to resolve package hl7.fhir.us.davinci-pdex-plan-net#1.0.0 from server: http://packages.fhir.org
2020-12-08 20:46:16.842 [main] INFO o.h.f.u.npm.BasePackageCacheManager [BasePackageCacheManager.java:79] Failed to resolve package hl7.fhir.us.davinci-pdex-plan-net#1.0.0 from server: http://packages2.fhir.org/packages
Exception in thread "main" org.hl7.fhir.exceptions.FHIRException: Unable to find package hl7.fhir.us.davinci-pdex-plan-net#1.0.0
at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.loadPackage(FilesystemPackageCacheManager.java:497)
at org.hl7.fhir.validation.ValidationEngine.loadIg(ValidationEngine.java:1010)
at org.hl7.fhir.validation.cli.services.ValidationService.getValidator(ValidationService.java:217)
at org.hl7.fhir.validation.ValidatorCli.doValidation(ValidatorCli.java:159)
at org.hl7.fhir.validation.ValidatorCli.main(ValidatorCli.java:115)
If i run without version then get below trace -
Loading
Load FHIR v4.0 from hl7.fhir.r4.core#4.0.1 - 4575 resources (00:07.0537)
Terminology server http://tx.fhir.org - Version 1.9.367 (00:03.0594)
Load hl7.fhir.us.davinci-pdex-plan-net#0.1.0 - 144 resources (00:00.0116)
Get set... go (00:00.0153)
Saul Kravitz (Dec 08 2020 at 15:52):
My interpretation:
- the 0.1.0 version is very stale
- the 1.0.0 version isn't available
Try running with the version set to '#dev' instead of '#1.0.0'.
That is the version in my package cache. Try running the validator that way, and then look in:
more ~/.fhir/packages/hl7.fhir.us.davinci-pdex-plan-net\#dev/package/package.json
You should see version 0.1.8 (which is the same as version 1.0.0). @Chetan Jain
Chetan Jain (Dec 17 2020 at 09:04):
Thanks @Saul Kravitz pulling the dev version resolved the issue of false errors. Appreciate all your support !!
Last updated: Apr 12 2022 at 19:14 UTC