FHIR Chat · valueSet reference snapshot generation error · implementers

Stream: implementers

Topic: valueSet reference snapshot generation error


view this post on Zulip Hans van Amstel (Nov 07 2019 at 14:02):

The following profile snippit is generated using Forge for STU3.
<element id="Observation.code"> <path value="Observation.code" /> <binding> <strength value="required" /> <valueSetReference> <reference value="https://www.fhir.philips.com/3.0/ValueSet/common/core/laboratory-v1/biochemistry/valueset/list-Biochemistry-type-codes" /> </valueSetReference> </binding> </element>

When I try to validate it I get the following error I use version 4.0.31-SNAPSHOT of the validator.

Exception in thread "main" org.hl7.fhir.exceptions.FHIRFormatError: Unknown Content valueSetReference @ START_TAG seen ...<strength value="required" />\n <valueSetReference>... @18:28

I did check the url and this is the same as in the valueset.
What should I change to make it validate correctly.

view this post on Zulip Lloyd McKenzie (Nov 07 2019 at 15:42):

Have you told the validator you're using STU3 (using the -version parameter)? If you don't specify a version, it's going to presume you're using the current release.

view this post on Zulip Hans van Amstel (Nov 08 2019 at 09:27):

Thank you for the quick response @Lloyd McKenzie the error occurs when generating a snapshot.
This is the full output with the arguments that I use:
FHIR Validation tool Version 4.0.31-SNAPSHOT - Built 2019-11-05T15:35:39.648+11:00 - Git a0ece162e77c Detected Java version: 13.0.1 from /usr/java/openjdk-13 on amd64 (64bit). 1990MB available Arguments: Biochemistry.structuredefinition.xml -version 3.0 -snapshot -output /usr/data/npmpackage/package_snapshots/Biochemistry.structuredefinition.xml Directories: Current = /usr/data/npmpackage/package, Package Cache = /root/.fhir/packages .. connect to tx server @ http://tx.fhir.org .. definitions from hl7.fhir.r3.core#3.0.2 Installing hl7.fhir.r3.core#3.0.2 to the package cache Fetching:............................................................................................................ ...................................................................|....................................................................................... Analysing................................................................................ done. (v3.0.2) Exception in thread "main" org.hl7.fhir.exceptions.FHIRFormatError: Unknown Content valueSetReference @ START_TAG seen ...<strength value="required" />\r\n <valueSetReference>... @18:28

view this post on Zulip Lloyd McKenzie (Nov 08 2019 at 16:28):

Weird. @Grahame Grieve ?

view this post on Zulip Grahame Grieve (Nov 10 2019 at 10:01):

getting to this... where would I find Biochemistry.structuredefinition.xml ?

view this post on Zulip Hans van Amstel (Nov 11 2019 at 14:03):

@Grahame Grieve I sended you the profiles for biochemistry via e-mail.

view this post on Zulip Grahame Grieve (Nov 11 2019 at 22:07):

ok fixed next release

view this post on Zulip Hans van Amstel (Nov 13 2019 at 08:39):

Thanks @Grahame Grieve for the fix.


Last updated: Apr 12 2022 at 19:14 UTC