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: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>
Can anyone please provide me with an xml or json that will contain this data?
thank you in advance,