diff --git a/validator/bundle-dual-subject.xml b/validator/bundle-dual-subject.xml new file mode 100644 index 00000000..2ede4f32 --- /dev/null +++ b/validator/bundle-dual-subject.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="urn:uuid:13ed3afe-3d31-4148-8e95-dd62d140da57"/> + <resource> + <Organization> + <name value="Zrbj Laboratories"/> + </Organization> + </resource> + </entry> +</Bundle> diff --git a/validator/bundle-dual-target.xml b/validator/bundle-dual-target.xml new file mode 100644 index 00000000..89f5fcdd --- /dev/null +++ b/validator/bundle-dual-target.xml @@ -0,0 +1,31 @@ +<Bundle xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml"> + <id value="IPS-examples-Bundle-01"/> + <type value="document"/> + <entry> + <fullUrl value="urn:uuid:30551ce1-5a28-4356-b684-1e639094ad4d"/> + <resource> + <Composition> + <id value="456"/> + <subject> + <reference value="Patient/123"/> + </subject> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="urn:uuid:2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> + <resource> + <Patient> + <id value="123"/> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="urn:uuid:f5452d76-3d4e-4cd0-9fc0-1ac3623e5cbf"/> + <resource> + <Patient> + <id value="123"/> + </Patient> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/validator/manifest.json b/validator/manifest.json index 51f87ad4..bb0d9b5c 100644 --- a/validator/manifest.json +++ b/validator/manifest.json @@ -1671,7 +1671,7 @@ }, "diagnostics": "[38,18]", "expression": [ - "Bundle.entry[1].resource.author[1].reference" + "Bundle.entry[1].resource.author[1]" ] }, { @@ -1682,7 +1682,7 @@ }, "diagnostics": "[41,18]", "expression": [ - "Bundle.entry[1].resource.author[2].reference" + "Bundle.entry[1].resource.author[2]" ] }, { @@ -1693,7 +1693,7 @@ }, "diagnostics": "[44,18]", "expression": [ - "Bundle.entry[1].resource.author[3].reference" + "Bundle.entry[1].resource.author[3]" ] }, { @@ -1704,7 +1704,7 @@ }, "diagnostics": "[47,18]", "expression": [ - "Bundle.entry[1].resource.author[4].reference" + "Bundle.entry[1].resource.author[4]" ] }, { @@ -1715,7 +1715,7 @@ }, "diagnostics": "[33,16]", "expression": [ - "Bundle.entry[1].resource.encounter.reference" + "Bundle.entry[1].resource.encounter" ] }, { @@ -1726,7 +1726,7 @@ }, "diagnostics": "[60,16]", "expression": [ - "Bundle.entry[1].resource.custodian.reference" + "Bundle.entry[1].resource.custodian" ] }, { @@ -1737,7 +1737,7 @@ }, "diagnostics": "[54,20]", "expression": [ - "Bundle.entry[1].resource.attester[1].party.reference" + "Bundle.entry[1].resource.attester[1].party" ] }, { @@ -1748,7 +1748,7 @@ }, "diagnostics": "[66,22]", "expression": [ - "Bundle.entry[1].resource.event[1].detail[1].reference" + "Bundle.entry[1].resource.event[1].detail[1]" ] }, { @@ -1759,7 +1759,7 @@ }, "diagnostics": "[85,22]", "expression": [ - "Bundle.entry[1].resource.section[1].entry[1].reference" + "Bundle.entry[1].resource.section[1].entry[1]" ] }, { @@ -1770,7 +1770,7 @@ }, "diagnostics": "[102,22]", "expression": [ - "Bundle.entry[1].resource.section[2].entry[1].reference" + "Bundle.entry[1].resource.section[2].entry[1]" ] }, { @@ -1781,7 +1781,7 @@ }, "diagnostics": "[119,22]", "expression": [ - "Bundle.entry[1].resource.section[3].entry[1].reference" + "Bundle.entry[1].resource.section[3].entry[1]" ] }, { @@ -1792,7 +1792,7 @@ }, "diagnostics": "[136,22]", "expression": [ - "Bundle.entry[1].resource.section[4].entry[1].reference" + "Bundle.entry[1].resource.section[4].entry[1]" ] }, { @@ -1803,7 +1803,7 @@ }, "diagnostics": "[153,22]", "expression": [ - "Bundle.entry[1].resource.section[5].entry[1].reference" + "Bundle.entry[1].resource.section[5].entry[1]" ] }, { @@ -1814,7 +1814,7 @@ }, "diagnostics": "[170,22]", "expression": [ - "Bundle.entry[1].resource.section[6].entry[1].reference" + "Bundle.entry[1].resource.section[6].entry[1]" ] }, { @@ -1825,7 +1825,7 @@ }, "diagnostics": "[173,22]", "expression": [ - "Bundle.entry[1].resource.section[6].entry[2].reference" + "Bundle.entry[1].resource.section[6].entry[2]" ] }, { @@ -1836,7 +1836,7 @@ }, "diagnostics": "[176,22]", "expression": [ - "Bundle.entry[1].resource.section[6].entry[3].reference" + "Bundle.entry[1].resource.section[6].entry[3]" ] }, { @@ -1847,7 +1847,7 @@ }, "diagnostics": "[179,22]", "expression": [ - "Bundle.entry[1].resource.section[6].entry[4].reference" + "Bundle.entry[1].resource.section[6].entry[4]" ] }, { @@ -1858,7 +1858,7 @@ }, "diagnostics": "[196,22]", "expression": [ - "Bundle.entry[1].resource.section[7].entry[1].reference" + "Bundle.entry[1].resource.section[7].entry[1]" ] }, { @@ -1869,7 +1869,7 @@ }, "diagnostics": "[213,22]", "expression": [ - "Bundle.entry[1].resource.section[8].entry[1].reference" + "Bundle.entry[1].resource.section[8].entry[1]" ] }, { @@ -1880,7 +1880,7 @@ }, "diagnostics": "[242,26]", "expression": [ - "Bundle.entry[1].resource.section[9].section[1].entry[1].reference" + "Bundle.entry[1].resource.section[9].section[1].entry[1]" ] }, { @@ -1891,7 +1891,7 @@ }, "diagnostics": "[259,26]", "expression": [ - "Bundle.entry[1].resource.section[9].section[2].entry[1].reference" + "Bundle.entry[1].resource.section[9].section[2].entry[1]" ] }, { @@ -1902,7 +1902,7 @@ }, "diagnostics": "[262,26]", "expression": [ - "Bundle.entry[1].resource.section[9].section[2].entry[2].reference" + "Bundle.entry[1].resource.section[9].section[2].entry[2]" ] }, { @@ -1913,7 +1913,7 @@ }, "diagnostics": "[265,26]", "expression": [ - "Bundle.entry[1].resource.section[9].section[2].entry[3].reference" + "Bundle.entry[1].resource.section[9].section[2].entry[3]" ] }, { @@ -1924,7 +1924,7 @@ }, "diagnostics": "[268,26]", "expression": [ - "Bundle.entry[1].resource.section[9].section[2].entry[4].reference" + "Bundle.entry[1].resource.section[9].section[2].entry[4]" ] }, { @@ -1935,7 +1935,7 @@ }, "diagnostics": "[271,26]", "expression": [ - "Bundle.entry[1].resource.section[9].section[2].entry[5].reference" + "Bundle.entry[1].resource.section[9].section[2].entry[5]" ] }, { @@ -1946,7 +1946,7 @@ }, "diagnostics": "[274,26]", "expression": [ - "Bundle.entry[1].resource.section[9].section[2].entry[6].reference" + "Bundle.entry[1].resource.section[9].section[2].entry[6]" ] }, { @@ -1957,7 +1957,7 @@ }, "diagnostics": "[277,26]", "expression": [ - "Bundle.entry[1].resource.section[9].section[2].entry[7].reference" + "Bundle.entry[1].resource.section[9].section[2].entry[7]" ] }, { @@ -1968,7 +1968,7 @@ }, "diagnostics": "[330,26]", "expression": [ - "Bundle.entry[1].resource.section[10].section[1].entry[1].reference" + "Bundle.entry[1].resource.section[10].section[1].entry[1]" ] }, { @@ -1979,7 +1979,7 @@ }, "diagnostics": "[347,26]", "expression": [ - "Bundle.entry[1].resource.section[10].section[2].entry[1].reference" + "Bundle.entry[1].resource.section[10].section[2].entry[1]" ] }, { @@ -1990,7 +1990,7 @@ }, "diagnostics": "[350,26]", "expression": [ - "Bundle.entry[1].resource.section[10].section[2].entry[2].reference" + "Bundle.entry[1].resource.section[10].section[2].entry[2]" ] }, { @@ -2001,7 +2001,7 @@ }, "diagnostics": "[353,26]", "expression": [ - "Bundle.entry[1].resource.section[10].section[2].entry[3].reference" + "Bundle.entry[1].resource.section[10].section[2].entry[3]" ] }, { @@ -2012,7 +2012,7 @@ }, "diagnostics": "[356,26]", "expression": [ - "Bundle.entry[1].resource.section[10].section[2].entry[4].reference" + "Bundle.entry[1].resource.section[10].section[2].entry[4]" ] }, { @@ -2023,7 +2023,7 @@ }, "diagnostics": "[387,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[1].entry[1].reference" + "Bundle.entry[1].resource.section[11].section[1].entry[1]" ] }, { @@ -2034,7 +2034,7 @@ }, "diagnostics": "[404,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[2].entry[1].reference" + "Bundle.entry[1].resource.section[11].section[2].entry[1]" ] }, { @@ -2045,7 +2045,7 @@ }, "diagnostics": "[421,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[3].entry[1].reference" + "Bundle.entry[1].resource.section[11].section[3].entry[1]" ] }, { @@ -2056,7 +2056,7 @@ }, "diagnostics": "[424,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[3].entry[2].reference" + "Bundle.entry[1].resource.section[11].section[3].entry[2]" ] }, { @@ -2067,7 +2067,7 @@ }, "diagnostics": "[427,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[3].entry[3].reference" + "Bundle.entry[1].resource.section[11].section[3].entry[3]" ] }, { @@ -2078,7 +2078,7 @@ }, "diagnostics": "[444,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[4].entry[1].reference" + "Bundle.entry[1].resource.section[11].section[4].entry[1]" ] }, { @@ -2089,7 +2089,7 @@ }, "diagnostics": "[447,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[4].entry[2].reference" + "Bundle.entry[1].resource.section[11].section[4].entry[2]" ] }, { @@ -2100,7 +2100,7 @@ }, "diagnostics": "[464,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[1].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[1]" ] }, { @@ -2111,7 +2111,7 @@ }, "diagnostics": "[467,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[2].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[2]" ] }, { @@ -2122,7 +2122,7 @@ }, "diagnostics": "[470,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[3].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[3]" ] }, { @@ -2133,7 +2133,7 @@ }, "diagnostics": "[473,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[4].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[4]" ] }, { @@ -2144,7 +2144,7 @@ }, "diagnostics": "[476,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[5].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[5]" ] }, { @@ -2155,7 +2155,7 @@ }, "diagnostics": "[479,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[6].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[6]" ] }, { @@ -2166,7 +2166,7 @@ }, "diagnostics": "[482,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[7].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[7]" ] }, { @@ -2177,7 +2177,7 @@ }, "diagnostics": "[485,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[8].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[8]" ] }, { @@ -2188,7 +2188,7 @@ }, "diagnostics": "[488,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[9].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[9]" ] }, { @@ -2199,7 +2199,7 @@ }, "diagnostics": "[491,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[10].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[10]" ] }, { @@ -2210,7 +2210,7 @@ }, "diagnostics": "[494,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[11].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[11]" ] }, { @@ -2221,7 +2221,7 @@ }, "diagnostics": "[497,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[12].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[12]" ] }, { @@ -2232,7 +2232,7 @@ }, "diagnostics": "[500,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[13].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[13]" ] }, { @@ -2243,7 +2243,7 @@ }, "diagnostics": "[503,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[14].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[14]" ] }, { @@ -2254,7 +2254,7 @@ }, "diagnostics": "[506,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[15].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[15]" ] }, { @@ -2265,7 +2265,7 @@ }, "diagnostics": "[509,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[16].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[16]" ] }, { @@ -2276,7 +2276,7 @@ }, "diagnostics": "[512,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[17].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[17]" ] }, { @@ -2287,7 +2287,7 @@ }, "diagnostics": "[515,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[18].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[18]" ] }, { @@ -2298,7 +2298,7 @@ }, "diagnostics": "[518,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[19].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[19]" ] }, { @@ -2309,7 +2309,7 @@ }, "diagnostics": "[521,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[20].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[20]" ] }, { @@ -2320,7 +2320,7 @@ }, "diagnostics": "[524,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[21].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[21]" ] }, { @@ -2331,7 +2331,7 @@ }, "diagnostics": "[527,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[22].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[22]" ] }, { @@ -2342,7 +2342,7 @@ }, "diagnostics": "[530,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[23].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[23]" ] }, { @@ -2353,7 +2353,7 @@ }, "diagnostics": "[533,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[24].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[24]" ] }, { @@ -2364,7 +2364,7 @@ }, "diagnostics": "[536,26]", "expression": [ - "Bundle.entry[1].resource.section[11].section[5].entry[25].reference" + "Bundle.entry[1].resource.section[11].section[5].entry[25]" ] }, { @@ -2375,7 +2375,7 @@ }, "diagnostics": "[555,22]", "expression": [ - "Bundle.entry[1].resource.section[12].entry[1].reference" + "Bundle.entry[1].resource.section[12].entry[1]" ] }, { @@ -2386,7 +2386,7 @@ }, "diagnostics": "[558,22]", "expression": [ - "Bundle.entry[1].resource.section[12].entry[2].reference" + "Bundle.entry[1].resource.section[12].entry[2]" ] }, { @@ -2397,7 +2397,7 @@ }, "diagnostics": "[578,22]", "expression": [ - "Bundle.entry[1].resource.section[13].entry[2].reference" + "Bundle.entry[1].resource.section[13].entry[2]" ] }, { @@ -2408,7 +2408,7 @@ }, "diagnostics": "[581,22]", "expression": [ - "Bundle.entry[1].resource.section[13].entry[3].reference" + "Bundle.entry[1].resource.section[13].entry[3]" ] }, { @@ -5869,6 +5869,93 @@ "Bundle.entry[2].resource/*Organization/81ec3a28-a34a-400d-acf1-6d57832633ca*/.meta.profile[0]" ] }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'urn:uuid:b8fe561b-6b36-46f5-b6bb-433529955b8c' in the bundle (Composition.author)" + }, + "diagnostics": "[152,23]", + "expression": [ + "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.author[1]" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'urn:uuid:a7f1f367-144b-4bf3-8c65-a0826787986b' in the bundle (Composition.encounter)" + }, + "diagnostics": "[146,26]", + "expression": [ + "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.encounter" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'urn:uuid:97775e71-21d7-4f2d-aadb-2f3f5a1da6a6' in the bundle (Composition.custodian)" + }, + "diagnostics": "[157,26]", + "expression": [ + "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.custodian" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'urn:uuid:a7f1f367-144b-4bf3-8c65-a0826787986b' in the bundle (Section Entry)" + }, + "diagnostics": "[191,24]", + "expression": [ + "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.section[2].entry[1]" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'urn:uuid:16bbba8a-ba9b-46ea-b571-a64dba136a2a' in the bundle (Section Entry)" + }, + "diagnostics": "[290,24]", + "expression": [ + "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.section[8].entry[1]" + ] + }, + { + "severity": "error", + "code": "required", + "details": { + "text": "A document must have a date (Bundle.timestamp)" + }, + "expression": [ + "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/" + ] + }, + { + "severity": "warning", + "code": "structure", + "details": { + "text": "Entry 'urn:uuid:75624dcb-fdae-4129-adec-953644046c54' isn't reachable by traversing forwards from the Composition. Only Provenance is approved to be used this way (R4 section 3.3.1)" + }, + "diagnostics": "[380,16]", + "expression": [ + "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[5]" + ] + }, + { + "severity": "warning", + "code": "structure", + "details": { + "text": "Entry 'urn:uuid:3d7d07c0-8ed2-43ea-92d4-1adad6e315fc' isn't reachable by traversing forwards from the Composition. Only Provenance is approved to be used this way (R4 section 3.3.1)" + }, + "diagnostics": "[407,16]", + "expression": [ + "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[5]" + ] + }, { "severity": "error", "code": "structure", @@ -6227,93 +6314,6 @@ "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[3].resource/*Patient/9439fa97-f1a9-438d-8a9c-80f52bcbce64*/.meta.profile[0]" ] }, - { - "severity": "error", - "code": "structure", - "details": { - "text": "Can't find 'urn:uuid:b8fe561b-6b36-46f5-b6bb-433529955b8c' in the bundle (Composition.author)" - }, - "diagnostics": "[152,23]", - "expression": [ - "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.author[1].reference" - ] - }, - { - "severity": "error", - "code": "structure", - "details": { - "text": "Can't find 'urn:uuid:a7f1f367-144b-4bf3-8c65-a0826787986b' in the bundle (Composition.encounter)" - }, - "diagnostics": "[146,26]", - "expression": [ - "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.encounter.reference" - ] - }, - { - "severity": "error", - "code": "structure", - "details": { - "text": "Can't find 'urn:uuid:97775e71-21d7-4f2d-aadb-2f3f5a1da6a6' in the bundle (Composition.custodian)" - }, - "diagnostics": "[157,26]", - "expression": [ - "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.custodian.reference" - ] - }, - { - "severity": "error", - "code": "structure", - "details": { - "text": "Can't find 'urn:uuid:a7f1f367-144b-4bf3-8c65-a0826787986b' in the bundle (Section Entry)" - }, - "diagnostics": "[191,24]", - "expression": [ - "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.section[2].entry[1].reference" - ] - }, - { - "severity": "error", - "code": "structure", - "details": { - "text": "Can't find 'urn:uuid:16bbba8a-ba9b-46ea-b571-a64dba136a2a' in the bundle (Section Entry)" - }, - "diagnostics": "[290,24]", - "expression": [ - "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[1].resource.section[8].entry[1].reference" - ] - }, - { - "severity": "error", - "code": "required", - "details": { - "text": "A document must have a date (Bundle.timestamp)" - }, - "expression": [ - "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/" - ] - }, - { - "severity": "warning", - "code": "structure", - "details": { - "text": "Entry 'urn:uuid:75624dcb-fdae-4129-adec-953644046c54' isn't reachable by traversing forwards from the Composition. Only Provenance is approved to be used this way (R4 section 3.3.1)" - }, - "diagnostics": "[380,16]", - "expression": [ - "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[5]" - ] - }, - { - "severity": "warning", - "code": "structure", - "details": { - "text": "Entry 'urn:uuid:3d7d07c0-8ed2-43ea-92d4-1adad6e315fc' isn't reachable by traversing forwards from the Composition. Only Provenance is approved to be used this way (R4 section 3.3.1)" - }, - "diagnostics": "[407,16]", - "expression": [ - "Bundle.entry[3].resource/*Bundle/5152d044-f569-4ab4-bff8-bb69f55fea98*/.entry[5]" - ] - }, { "severity": "warning", "code": "structure", @@ -6329,55 +6329,22 @@ "severity": "error", "code": "structure", "details": { - "text": "Can't find 'urn:uuid:b8fe561b-6b36-46f5-b6bb-433529955b8c' in the bundle (Composition.author)" - }, - "diagnostics": "[152,23]", - "expression": [ - "Bundle.entry[3].resource.entry[1].resource.author[1].reference" - ] - }, - { - "severity": "error", - "code": "structure", - "details": { - "text": "Can't find 'urn:uuid:a7f1f367-144b-4bf3-8c65-a0826787986b' in the bundle (Composition.encounter)" - }, - "diagnostics": "[146,26]", - "expression": [ - "Bundle.entry[3].resource.entry[1].resource.encounter.reference" - ] - }, - { - "severity": "error", - "code": "structure", - "details": { - "text": "Can't find 'urn:uuid:97775e71-21d7-4f2d-aadb-2f3f5a1da6a6' in the bundle (Composition.custodian)" + "text": "Can't find 'https://fhir.nhs.uk/STU3/MessageDefinition/ITK-eDischarge-MessageDefinition-Instance-1' in the bundle (Bundle.entry[0].resource.extension[0].extension[3].value[x])" }, - "diagnostics": "[157,26]", - "expression": [ - "Bundle.entry[3].resource.entry[1].resource.custodian.reference" - ] - }, - { - "severity": "error", - "code": "structure", - "details": { - "text": "Can't find 'urn:uuid:a7f1f367-144b-4bf3-8c65-a0826787986b' in the bundle (Section Entry)" - }, - "diagnostics": "[191,24]", + "diagnostics": "[1,91]", "expression": [ - "Bundle.entry[3].resource.entry[1].resource.section[2].entry[1].reference" + "Bundle" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find 'urn:uuid:16bbba8a-ba9b-46ea-b571-a64dba136a2a' in the bundle (Section Entry)" + "text": "Can't find 'urn:uuid:9439fa97-f1a9-438d-8a9c-80f52bcbce64' in the bundle (Bundle.entry[3].resource.entry[0].resource.subject)" }, - "diagnostics": "[290,24]", + "diagnostics": "[1,91]", "expression": [ - "Bundle.entry[3].resource.entry[1].resource.section[8].entry[1].reference" + "Bundle" ] }, { @@ -9452,88 +9419,242 @@ "severity": "error", "code": "structure", "details": { - "text": "Can't find 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Composition.subject)" + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Composition.subject)" }, "diagnostics": "[50,18]", "expression": [ - "Bundle.entry[1].resource.subject.reference" + "Bundle.entry[1].resource.subject" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find '1c46f165-cb84-4931-9e34-318f459d9782' in the bundle (Section Entry)" + "text": "Found 2 matches for '1c46f165-cb84-4931-9e34-318f459d9782' in the bundle (Section Entry)" }, "diagnostics": "[56,18]", "expression": [ - "Bundle.entry[1].resource.section[1].entry[1].reference" + "Bundle.entry[1].resource.section[1].entry[1]" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find '13083ac1-7956-496b-a8bf-e6057a9f2add' in the bundle (Section Entry)" + "text": "Found 2 matches for '13083ac1-7956-496b-a8bf-e6057a9f2add' in the bundle (Section Entry)" }, "diagnostics": "[62,18]", "expression": [ - "Bundle.entry[1].resource.section[2].entry[1].reference" + "Bundle.entry[1].resource.section[2].entry[1]" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find '36939539-03ab-4383-b839-e0b081bbbe4a' in the bundle (Section Entry)" + "text": "Found 2 matches for '36939539-03ab-4383-b839-e0b081bbbe4a' in the bundle (Section Entry)" }, "diagnostics": "[83,18]", "expression": [ - "Bundle.entry[1].resource.section[4].entry[1].reference" + "Bundle.entry[1].resource.section[4].entry[1]" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find '754d6deb-2fa0-42f8-a6c8-7d203f165879' in the bundle (Section Entry)" + "text": "Found 2 matches for '754d6deb-2fa0-42f8-a6c8-7d203f165879' in the bundle (Section Entry)" }, "diagnostics": "[86,18]", "expression": [ - "Bundle.entry[1].resource.section[4].entry[2].reference" + "Bundle.entry[1].resource.section[4].entry[2]" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find '47bc33d5-5eea-45fd-8a46-b3543a7c4495' in the bundle (Section Entry)" + "text": "Found 2 matches for '47bc33d5-5eea-45fd-8a46-b3543a7c4495' in the bundle (Section Entry)" }, "diagnostics": "[89,18]", "expression": [ - "Bundle.entry[1].resource.section[4].entry[3].reference" + "Bundle.entry[1].resource.section[4].entry[3]" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find 'Produce001' in the bundle (Section Entry)" + "text": "Found 2 matches for 'Produce001' in the bundle (Section Entry)" }, "diagnostics": "[95,18]", "expression": [ - "Bundle.entry[1].resource.section[5].entry[1].reference" + "Bundle.entry[1].resource.section[5].entry[1]" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find 'Device001' in the bundle (Section Entry)" + "text": "Found 2 matches for 'Device001' in the bundle (Section Entry)" }, "diagnostics": "[101,18]", "expression": [ - "Bundle.entry[1].resource.section[6].entry[1].reference" + "Bundle.entry[1].resource.section[6].entry[1]" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for '2f527a27-9fc8-497e-abe0-6d1412f0347b' in the bundle (Bundle.entry[1].resource.managingOrganization)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for '73ce0386-82d1-4db6-8ec7-71c1bcc0fdfe' in the bundle (Bundle.entry[3].resource.participant[0].member)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'ca645ab4-0a86-4bed-b5a8-78937f835a8a' in the bundle (Bundle.entry[4].resource.diagnosis[0].condition)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for '50b36085-27a7-4f9d-a45c-05349ce457bc' in the bundle (Bundle.entry[8].resource.practitioner)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[9].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[10].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[11].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[12].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[13].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[14].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[15].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[16].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for 'c282c3ec-6bd3-4826-b654-5a171776e296' in the bundle (Bundle.entry[17].resource.subject)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Found 2 matches for '1c46f165-cb84-4931-9e34-318f459d9782' in the bundle (Bundle.entry[17].resource.encounter)" + }, + "diagnostics": "[1,37]", + "expression": [ + "Bundle" ] }, { @@ -10007,6 +10128,17 @@ "Bundle.entry[7].resource/*Organization/null*/.contained[0]/*Endpoint/direct*/.payloadType[0].coding[0]" ] }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'urn:uuid:75ea28b5-74b8-4d9c-9eb5-cfdc10b48fa' in the bundle (Bundle.entry[1].resource.location[0].location)" + }, + "diagnostics": "[2,37]", + "expression": [ + "Bundle" + ] + }, { "severity": "information", "code": "informational", @@ -10107,6 +10239,17 @@ "Bundle.entry[7].resource/*Organization/null*/.contained[0]/*Endpoint/direct*/.payloadType[0].coding[0]" ] }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'urn:uuid:75ea28b5-74b8-4d9c-9eb5-cfdc10b48fa' in the bundle (Bundle.entry[1].resource.location[0].location)" + }, + "diagnostics": "[2,37]", + "expression": [ + "Bundle" + ] + }, { "severity": "information", "code": "informational", @@ -14844,6 +14987,17 @@ "expression": [ "Bundle.entry[5].resource/*MedicationRequest/null*/.dosageInstruction[0].dose.ofType(Quantity)" ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Organization/f002' in the bundle (Bundle.entry[5].resource.requester.onBehalfOf)" + }, + "diagnostics": "[1,75]", + "expression": [ + "Bundle" + ] } ] } @@ -19587,6 +19741,50 @@ "Bundle.entry[2]" ] }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Patient/1' in the bundle (Composition.subject). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``Patient/1``)" + }, + "diagnostics": "[30,6]", + "expression": [ + "Bundle.entry[1].resource.subject" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Device/1' in the bundle (Composition.author). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``Device/1``)" + }, + "diagnostics": "[35,7]", + "expression": [ + "Bundle.entry[1].resource.author[1]" + ] + }, + { + "severity": "error", + "code": "informational", + "details": { + "text": "Entry 'Patient/1' isn't reachable by traversing links (forward or backward) from the Composition" + }, + "diagnostics": "[47,4]", + "expression": [ + "Bundle.entry[2]" + ] + }, + { + "severity": "error", + "code": "informational", + "details": { + "text": "Entry 'Device/1' isn't reachable by traversing links (forward or backward) from the Composition" + }, + "diagnostics": "[189,4]", + "expression": [ + "Bundle.entry[3]" + ] + }, { "severity": "error", "code": "structure", @@ -22920,6 +23118,17 @@ "Bundle.entry[37].resource/*DocumentReference/2*/.type" ] }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Practitioner/mni-practitioner-example1' in the bundle (Bundle.entry[5].resource.requester)" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, { "severity": "warning", "code": "structure", @@ -24846,6 +25055,17 @@ "expression": [ "Bundle.entry[5].resource/*MedicationRequest/null*/.dosageInstruction[0].dose.ofType(Quantity)" ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Organization/f002' in the bundle (Bundle.entry[5].resource.requester.onBehalfOf)" + }, + "diagnostics": "[1,75]", + "expression": [ + "Bundle" + ] } ] } @@ -26213,11 +26433,11 @@ "severity": "error", "code": "structure", "details": { - "text": "Can't find 'Organization/SampleLabelerOrganization' in the bundle (MessageHeader Data). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative resources" + "text": "Can't find 'Organization/SampleLabelerOrganization' in the bundle (MessageHeader Data). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``http://example.org/Organization/SampleLabelerOrganization``)" }, "diagnostics": "[25,12]", "expression": [ - "Bundle.entry[1].resource.focus[0].reference" + "Bundle.entry[1].resource.focus[0]" ] }, { @@ -32761,44 +32981,88 @@ "severity": "error", "code": "structure", "details": { - "text": "Can't find 'Patient/98549f1a-e0d5-4454-849c-f5b97d3ed299' in the bundle (Composition.subject). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative resources" + "text": "Can't find 'Patient/98549f1a-e0d5-4454-849c-f5b97d3ed299' in the bundle (Composition.subject). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``urn:uuid:98549f1a-e0d5-4454-849c-f5b97d3ed299``)" }, "diagnostics": "[24,10]", "expression": [ - "Bundle.entry[1].resource.subject.reference" + "Bundle.entry[1].resource.subject" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find 'AllergyIntolerance/e198be1e-9861-46af-9d97-841ef9f7c707' in the bundle (Section Entry). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative resources" + "text": "Can't find 'AllergyIntolerance/e198be1e-9861-46af-9d97-841ef9f7c707' in the bundle (Section Entry). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``urn:uuid:e198be1e-9861-46af-9d97-841ef9f7c707``)" }, "diagnostics": "[52,16]", "expression": [ - "Bundle.entry[1].resource.section[1].entry[1].reference" + "Bundle.entry[1].resource.section[1].entry[1]" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find 'MedicationStatement/d41ac499-c7e8-45fa-9246-69028bae178f' in the bundle (Section Entry). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative resources" + "text": "Can't find 'MedicationStatement/d41ac499-c7e8-45fa-9246-69028bae178f' in the bundle (Section Entry). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``urn:uuid:d41ac499-c7e8-45fa-9246-69028bae178f``)" }, "diagnostics": "[73,16]", "expression": [ - "Bundle.entry[1].resource.section[2].entry[1].reference" + "Bundle.entry[1].resource.section[2].entry[1]" ] }, { "severity": "error", "code": "structure", "details": { - "text": "Can't find 'Condition/da138a5d-633f-493f-9485-e5af1320db5b' in the bundle (Section Entry). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative resources" + "text": "Can't find 'Condition/da138a5d-633f-493f-9485-e5af1320db5b' in the bundle (Section Entry). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``urn:uuid:da138a5d-633f-493f-9485-e5af1320db5b``)" }, "diagnostics": "[94,16]", "expression": [ - "Bundle.entry[1].resource.section[3].entry[1].reference" + "Bundle.entry[1].resource.section[3].entry[1]" + ] + }, + { + "severity": "warning", + "code": "structure", + "details": { + "text": "Can't find 'urn:uuid:a6a8a8e6-415c-42e1-abf7-f8d876e5908b#MedicationSummary-d41ac499-c7e8-45fa-9246-69028bae178f' in the bundle (Bundle.entry[2].resource.extension[0].value[x])" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Patient/98549f1a-e0d5-4454-849c-f5b97d3ed299' in the bundle (Bundle.entry[2].resource.subject). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``urn:uuid:98549f1a-e0d5-4454-849c-f5b97d3ed299``)" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Patient/98549f1a-e0d5-4454-849c-f5b97d3ed299' in the bundle (Bundle.entry[3].resource.patient). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``urn:uuid:98549f1a-e0d5-4454-849c-f5b97d3ed299``)" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Patient/98549f1a-e0d5-4454-849c-f5b97d3ed299' in the bundle (Bundle.entry[4].resource.subject). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``urn:uuid:98549f1a-e0d5-4454-849c-f5b97d3ed299``)" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" ] }, { @@ -37188,7 +37452,7 @@ ] } } - }, + }, { "name": "relative_reference_to_fullUrl.id_in_Composition", "file": "relative_reference_to_fullUrl.id_in_Composition.xml", @@ -37226,11 +37490,11 @@ "severity": "error", "code": "structure", "details": { - "text": "Can't find 'Organization/666' in the bundle (Composition.author). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative resources" + "text": "Can't find 'Organization/666' in the bundle (Composition.author). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``http://zrbj.eu/x/Organization/666``)" }, "diagnostics": "[20,13]", "expression": [ - "Bundle.entry[1].resource.author[1].reference" + "Bundle.entry[1].resource.author[1]" ] }, { @@ -37276,7 +37540,7 @@ }, "diagnostics": "[20,13]", "expression": [ - "Bundle.entry[1].resource.author[1].reference" + "Bundle.entry[1].resource.author[1]" ] }, { @@ -37339,11 +37603,11 @@ "severity": "error", "code": "structure", "details": { - "text": "Can't find 'Organization/666' in the bundle (Composition.author). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative resources" + "text": "Can't find 'Organization/666' in the bundle (Composition.author). Note that there is a resource in the bundle with the same type and id, but it does not match because of the fullUrl based rules around matching relative references (must be ``urn:uuid:2aaf815f-3ebe-4a03-9b87-05d0700313b2``)" }, "diagnostics": "[20,13]", "expression": [ - "Bundle.entry[1].resource.author[1].reference" + "Bundle.entry[1].resource.author[1]" ] }, { @@ -37361,6 +37625,183 @@ } } }, + { + "name": "bundle-dual-subject", + "file": "bundle-dual-subject.xml", + "description": "Crashed the validator", + "version": "4.0", + "java": { + "outcome": { + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "structure", + "details": { + "text": "Composition.subject: max allowed = 1, but found 2 (from http://hl7.org/fhir/StructureDefinition/Composition|4.0.1)" + }, + "diagnostics": "[10,13]", + "expression": [ + "Bundle.entry[0].resource/*Composition/null*/" + ] + } + ] + } + } + }, + { + "name": "bundle-dual-target", + "file": "bundle-dual-target.xml", + "description": "checck there's an error for duplicate target", + "version": "4.0", + "java": { + "outcome": { + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "structure", + "details": { + "text": "Composition.status: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/Composition|4.0.1)" + }, + "diagnostics": "[6,19]", + "expression": [ + "Bundle.entry[0].resource/*Composition/456*/" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Composition.type: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/Composition|4.0.1)" + }, + "diagnostics": "[6,19]", + "expression": [ + "Bundle.entry[0].resource/*Composition/456*/" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Composition.date: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/Composition|4.0.1)" + }, + "diagnostics": "[6,19]", + "expression": [ + "Bundle.entry[0].resource/*Composition/456*/" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Composition.author: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/Composition|4.0.1)" + }, + "diagnostics": "[6,19]", + "expression": [ + "Bundle.entry[0].resource/*Composition/456*/" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Composition.title: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/Composition|4.0.1)" + }, + "diagnostics": "[6,19]", + "expression": [ + "Bundle.entry[0].resource/*Composition/456*/" + ] + }, + { + "severity": "warning", + "code": "required", + "details": { + "text": "The bundle contains no match for urn:uuid:123 by the rules of Bundle reference resolution, but it has multiple resources that match Patient/123 by resource type and id" + }, + "expression": [ + "Bundle.entry[0].resource/*Composition/456*/.subject" + ] + }, + { + "severity": "warning", + "code": "required", + "details": { + "text": "Entry 1 matches the reference Patient/123 by type and id but it's fullUrl urn:uuid:2b90dd2b-2dab-4c75-9bb9-a355e07401e8 does not match the full target URL urn:uuid:123 by Bundle resolution rules" + }, + "expression": [ + "Bundle.entry[0].resource/*Composition/456*/.subject" + ] + }, + { + "severity": "warning", + "code": "required", + "details": { + "text": "Entry 2 matches the reference Patient/123 by type and id but it's fullUrl urn:uuid:f5452d76-3d4e-4cd0-9fc0-1ac3623e5cbf does not match the full target URL urn:uuid:123 by Bundle resolution rules" + }, + "expression": [ + "Bundle.entry[0].resource/*Composition/456*/.subject" + ] + }, + { + "severity": "error", + "code": "invariant", + "details": { + "text": "Constraint failed: bdl-9: 'A document must have an identifier with a system and a value'" + }, + "diagnostics": "[1,80]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "invariant", + "details": { + "text": "Constraint failed: bdl-10: 'A document must have a date'" + }, + "diagnostics": "[1,80]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "error", + "code": "structure", + "details": { + "text": "Can't find 'Patient/123' in the bundle (Composition.subject). Note that there are 2 resources in the bundle with the same type and id, but they do not match because of the fullUrl based rules around matching relative references (one of ``urn:uuid:2b90dd2b-2dab-4c75-9bb9-a355e07401e8,urn:uuid:f5452d76-3d4e-4cd0-9fc0-1ac3623e5cbf``)" + }, + "diagnostics": "[9,26]", + "expression": [ + "Bundle.entry[1].resource.subject" + ] + }, + { + "severity": "error", + "code": "informational", + "details": { + "text": "Entry 'urn:uuid:2b90dd2b-2dab-4c75-9bb9-a355e07401e8' isn't reachable by traversing links (forward or backward) from the Composition" + }, + "diagnostics": "[15,12]", + "expression": [ + "Bundle.entry[2]" + ] + }, + { + "severity": "error", + "code": "informational", + "details": { + "text": "Entry 'urn:uuid:f5452d76-3d4e-4cd0-9fc0-1ac3623e5cbf' isn't reachable by traversing links (forward or backward) from the Composition" + }, + "diagnostics": "[23,12]", + "expression": [ + "Bundle.entry[3]" + ] + } + ] + } + } + }, { "name": "profile-default-value", "file": "profile-default-value.xml", @@ -37368,16 +37809,20 @@ "version": "4.0", "java": { "outcome": { - "resourceType" : "OperationOutcome", - "issue" : [{ - "severity" : "error", - "code" : "invariant", - "details" : { - "text" : "Constraint failed: sdf-21: 'Default values can only be specified on specializations'" - }, - "diagnostics" : "[1,50]", - "expression" : ["StructureDefinition"] - }] + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "error", + "code": "invariant", + "details": { + "text": "Constraint failed: sdf-21: 'Default values can only be specified on specializations'" + }, + "diagnostics": "[1,50]", + "expression": [ + "StructureDefinition" + ] + } + ] } } },