FHIR Chat · New Validator Parameter · conformance

Stream: conformance

Topic: New Validator Parameter


view this post on Zulip Grahame Grieve (Aug 10 2020 at 06:48):

Based on implementer feedback, I'm adding a new parameter to the validator:

Validating a single resource in a bundle

You might want to validate a single resource in a bundle without validating the entire bundle. You can't use the -profile parameter because that's the profile for the bundle itself. It's possible to write a bundle profile that invokes the right profile for the right resource, but this is very tedious. Instead, you can just ask the validator to validate a particular resource in the bundle against a given profile: 

-bundle {entry rule} {profile url}

This invokes the nominated profile (by canonical URL) on any entry in any bundle validated that meets the entry rule. The entry rule is either a Resource name, a integer index, or both:

  • Patient - validate any patient against the nominated profile 
  • 1 - validate the 1th resource (actually the second - index is 0 based) against the nominated profile
  • Patient:0 - validate the first patient resource against the nominated profile

E.g: 

java -jar validator_cli.jar c:\temp\bundle.xml -version 3.0 -ig hl7.fhir.us.core#1.0.1 -bundle Patient:0 http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient

view this post on Zulip Grahame Grieve (Aug 10 2020 at 06:48):

Comments welcome

view this post on Zulip Grahame Grieve (Aug 10 2020 at 06:49):

@Manisha Mantri


Last updated: Apr 12 2022 at 19:14 UTC