Hi,
I am creating my own validation to patient FHIR schematron and i need more file to validate the following rule:
there are 8 rules that refer to nested resources that are connected to the reference filed in the xml element
<sch:rule context=“Patient/link/other/identifier/assigner”>
<sch:assert test=“not(starts-with(reference/@value, ‘#’)) or exists(ancestor::[sel:entry or sel:parameter]/resource//contained/[id/@value=substring-after(current()/reference/@value, ‘#’)]|//contained/*[id/@value=substring-after(current()/reference/@value, ‘#’)])”>ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
</sch:rule>
Can anyone please provide me with an xml or json that will contain this data?
I’m not clear on what you’re looking for? Are you wanting an example that violates the rule? An example that meets the rule? What exactly are you trying to do? (Re-coding all the FHIR invariants in your own language isn’t the wisest thing because they can change over time and the number of invariants that will show up in FHIR profiles will make the approach rapidly impractical.)
It’s a parameter you pass to the validator via the command line. If not specified, the validator presumes you’re using the ‘current’ draft version of FHIR.