{"name": "organization-ids-in-one-order", "comment": "A custodian and two authors naming one organization, each listing its ids in another order, the custodian's first an id no identifier maps from: one record, one version read from the custodian, and one attribution in each role.", "input": {"file": "fixtures/in/organization-ids-in-one-order.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/organization-ids-in-one-order.xml", "text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ClinicalDocument xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:sdtc=\"urn:hl7-org:sdtc\">\n  <realmCode code=\"US\"/>\n  <typeId root=\"2.16.840.1.113883.1.3\" extension=\"POCD_HD000040\"/>\n  <templateId root=\"2.16.840.1.113883.10.20.22.1.1\" extension=\"2015-08-01\"/>\n  <templateId root=\"2.16.840.1.113883.10.20.22.1.2\" extension=\"2015-08-01\"/>\n  <id root=\"2.16.840.1.113883.19.5.99999.1\" extension=\"CCD-2025-0412\"/>\n  <code code=\"34133-9\" displayName=\"Summarization of Episode Note\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n  <title>Continuity of Care Document</title>\n  <effectiveTime value=\"20250412093000-0500\"/>\n  <confidentialityCode code=\"N\" codeSystem=\"2.16.840.1.113883.5.25\"/>\n  <languageCode code=\"en-US\"/>\n  <recordTarget>\n    <patientRole>\n      <id root=\"2.16.840.1.113883.19.5.99999.2\" extension=\"MRN-448120\"/>\n      <addr use=\"HP\">\n        <streetAddressLine>12 Alder Lane</streetAddressLine>\n        <city>Riverside</city>\n        <state>OR</state>\n        <postalCode>97000</postalCode>\n        <country>US</country>\n      </addr>\n      <telecom use=\"HP\" value=\"tel:+1-555-010-4477\"/>\n      <patient>\n        <name use=\"L\">\n          <given>Robin</given>\n          <given>Lee</given>\n          <family>Ahmadi</family>\n        </name>\n        <administrativeGenderCode code=\"F\" codeSystem=\"2.16.840.1.113883.5.1\" displayName=\"Female\"/>\n        <birthTime value=\"19780214\"/>\n      </patient>\n    </patientRole>\n  </recordTarget>\n  <author>\n    <time value=\"20250412093000-0500\"/>\n    <assignedAuthor>\n      <id root=\"2.16.840.1.113883.4.6\" extension=\"9990000017\"/>\n      <assignedPerson>\n        <name>\n          <given>Maya</given>\n          <family>Lindqvist</family>\n          <suffix>MD</suffix>\n        </name>\n      </assignedPerson>\n      <representedOrganization>\n        <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n        <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"RCH-1\"/>\n        <name>Riverside Community Hospital</name>\n      </representedOrganization>\n    </assignedAuthor>\n  </author>\n  <author>\n    <time value=\"20250412093000-0500\"/>\n    <assignedAuthor>\n      <id root=\"2.16.840.1.113883.4.6\" extension=\"9990000025\"/>\n      <assignedPerson>\n        <name>\n          <given>Daniel</given>\n          <family>Okafor</family>\n          <suffix>MD</suffix>\n        </name>\n      </assignedPerson>\n      <representedOrganization>\n        <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"RCH-1\"/>\n        <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n        <name>Riverside Community Hospital</name>\n      </representedOrganization>\n    </assignedAuthor>\n  </author>\n  <custodian>\n    <assignedCustodian>\n      <representedCustodianOrganization>\n        <id root=\"RiversideCommunity\" extension=\"77\"/>\n        <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"RCH-1\"/>\n        <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n        <name>Riverside Community Hospital</name>\n        <addr use=\"WP\">\n          <streetAddressLine>1 Hospital Drive</streetAddressLine>\n          <city>Riverside</city>\n          <state>OR</state>\n          <postalCode>97000</postalCode>\n          <country>US</country>\n        </addr>\n      </representedCustodianOrganization>\n    </assignedCustodian>\n  </custodian>\n  <component>\n    <structuredBody>\n      <component>\n        <section>\n          <templateId root=\"2.16.840.1.113883.10.20.22.2.6.1\" extension=\"2015-08-01\"/>\n          <code code=\"48765-2\" displayName=\"Allergies and Adverse Reactions\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Allergies and Adverse Reactions</title>\n          <text>\n            <table>\n              <thead><tr><th>Substance</th><th>Reaction</th><th>Severity</th><th>Status</th></tr></thead>\n              <tbody>\n                <tr ID=\"allergy-1\">\n                  <td ID=\"allergen-1\">Penicillin G benzathine</td>\n                  <td ID=\"reaction-1\">Hives</td>\n                  <td>Moderate</td>\n                  <td>Active</td>\n                </tr>\n              </tbody>\n            </table>\n          </text>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.30\" extension=\"2015-08-01\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"ACT-7731\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\n              <effectiveTime>\n                <low value=\"20190305\"/>\n              </effectiveTime>\n              <entryRelationship typeCode=\"SUBJ\">\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.7\" extension=\"2014-06-09\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"ALG-7731\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <text>\n                    <reference value=\"#allergy-1\"/>\n                  </text>\n                  <statusCode code=\"completed\"/>\n                  <effectiveTime>\n                    <low value=\"20190305\"/>\n                  </effectiveTime>\n                  <value xsi:type=\"CD\" code=\"416098002\" displayName=\"Drug allergy\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/>\n                  <participant typeCode=\"CSM\">\n                    <participantRole classCode=\"MANU\">\n                      <playingEntity classCode=\"MMAT\">\n                        <code code=\"7980\" displayName=\"Penicillin G\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\">\n                          <originalText>\n                            <reference value=\"#allergen-1\"/>\n                          </originalText>\n                          <translation code=\"764146007\" displayName=\"Penicillin\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/>\n                        </code>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2019-06-20\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CE\" code=\"55561003\" displayName=\"Active\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/>\n                    </observation>\n                  </entryRelationship>\n                  <entryRelationship typeCode=\"MFST\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.9\" extension=\"2014-06-09\"/>\n                      <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"RXN-7731\"/>\n                      <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                      <text>\n                        <reference value=\"#reaction-1\"/>\n                      </text>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CD\" code=\"247472004\" displayName=\"Hives\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/>\n                      <entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\">\n                        <observation classCode=\"OBS\" moodCode=\"EVN\">\n                          <templateId root=\"2.16.840.1.113883.10.20.22.4.8\" extension=\"2014-06-09\"/>\n                          <code code=\"SEV\" displayName=\"Severity Observation\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                          <statusCode code=\"completed\"/>\n                          <value xsi:type=\"CD\" code=\"6736007\" displayName=\"Moderate\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/>\n                        </observation>\n                      </entryRelationship>\n                    </observation>\n                  </entryRelationship>\n                  <entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.145\"/>\n                      <code code=\"82606-5\" displayName=\"Criticality\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CD\" code=\"CRITH\" displayName=\"High criticality\" codeSystem=\"2.16.840.1.113883.5.1063\" codeSystemName=\"HL7ObservationValue\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n        </section>\n      </component>\n      <component>\n        <section>\n          <templateId root=\"2.16.840.1.113883.10.20.22.2.5.1\" extension=\"2015-08-01\"/>\n          <code code=\"11450-4\" displayName=\"Problem List\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Problems</title>\n          <text>Seasonal allergic rhinitis, since 2016.</text>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/organization-ids-in-one-order.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/organization-ids-in-one-order.ttl", "text": "@prefix bridge: <https://ns.cascadeprotocol.org/bridge/v1-draft#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix cascade: <https://ns.cascadeprotocol.org/cascade#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n@prefix prov: <http://www.w3.org/ns/prov#> .\n@prefix org: <http://www.w3.org/ns/org#> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n<ni:///sha-256;0-haeIOQsSugdn7ttHSLaIwILpzgKMeGG-I_LG9RLQg> cascade:allergySeverity \"moderate\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergenName \"Penicillin G benzathine\" ;\n\tcascade:allergyCriticality \"high\" ;\n\tcascade:onsetDate \"2019-03-05\"^^xsd:date ;\n\tcascade:narrativeText \"Penicillin G benzathine\\nHives\\nModerate\\nActive\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:clinicalStatus \"active\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/7980> , <http://snomed.info/id/764146007> ;\n\tcascade:reactionManifestationText \"Hives\" ;\n\tcascade:reactionManifestationCode <http://snomed.info/id/247472004> .\n<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> prov:wasGeneratedBy _:aedc41448df2dd9027f6e41d2f51c1b ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:aedc41448df2dd9027f6e41d2f51c1b prov:qualifiedAssociation _:cfe6850e17c999f5ecd8193a1f2bf431 .\n_:cfe6850e17c999f5ecd8193a1f2bf431 prov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> ;\n\tprov:hadRole cascade:CustodianRole .\n<ni:///sha-256;SZbjl4a2QxwRcQE2bqZ6XFpfcb-kmuLNSgdY0GDUgzw> prov:specializationOf <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:aa7685485937c607c72296c161512a4 bridge:arrivedAs <ni:///sha-256;SZbjl4a2QxwRcQE2bqZ6XFpfcb-kmuLNSgdY0GDUgzw> ;\n\toa:hasSelector _:eace569c13dad0af587189c9ca64e775 .\n_:eace569c13dad0af587189c9ca64e775 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='custodian' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='assignedCustodian' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='representedCustodianOrganization' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n<ni:///sha-256;SZbjl4a2QxwRcQE2bqZ6XFpfcb-kmuLNSgdY0GDUgzw> foaf:name \"Riverside Community Hospital\" ;\n\torg:identifier \"urn:oid:2.16.840.1.113883.19.5.99999.3\"^^<urn:ietf:rfc:3986> , \"RCH-1\"^^<urn:oid:2.16.840.1.113883.19.5.99999.5> ;\n\tcascade:organizationAddress \"1 Hospital Drive\\nRiverside\\nOR\\n97000\\nUS\" .\n<ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> prov:wasGeneratedBy _:b6f1fb9f58823c6fc908188f307809fb .\n_:b6f1fb9f58823c6fc908188f307809fb prov:qualifiedAssociation _:aecb35438a4403419d00ebe576452e01 .\n_:aecb35438a4403419d00ebe576452e01 prov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> ;\n\tprov:hadRole cascade:AuthorRole .\n<ni:///sha-256;ITnfEId3cgv_ZOPLmE_tJnSn9LjGP7aY40a8O812UYE> cascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeName \"Problem List\" ;\n\tcascade:noteOrDocumentTitle \"Problems\" ;\n\tcascade:noteOrDocumentDate \"2025-04-12T09:30:00-05:00\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/11450-4> ;\n\tcascade:narrativeText \"Seasonal allergic rhinitis, since 2016.\" .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> foaf:givenName \"Robin\" ;\n\tfoaf:familyName \"Ahmadi\" ;\n\tcascade:dateOfBirth \"1978-02-14\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> a cascade:PatientProfile ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.2:MRN-448120> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-448120\" .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> prov:specializationOf <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:abbab677e3005c0b24676553c1bc8cad a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='recordTarget' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='patientRole' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ea604ff3ba889f551894e22b2345c46a bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:abbab677e3005c0b24676553c1bc8cad .\n<urn:uuid:b16a5c6b-b9cc-8d49-8579-2b6e166dd5e8> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4:ALG-7731> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-7731\" .\n<ni:///sha-256;0-haeIOQsSugdn7ttHSLaIwILpzgKMeGG-I_LG9RLQg> prov:specializationOf <urn:uuid:b16a5c6b-b9cc-8d49-8579-2b6e166dd5e8> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:e716c9585eb0c6cb80dedc0df342ef6f a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e5707e38e328c77ac685b72fce078a02 bridge:arrivedAs <ni:///sha-256;0-haeIOQsSugdn7ttHSLaIwILpzgKMeGG-I_LG9RLQg> ;\n\toa:hasSelector _:e716c9585eb0c6cb80dedc0df342ef6f .\n<urn:uuid:988d18db-26c2-8ed7-9775-8d239fddc553> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;ITnfEId3cgv_ZOPLmE_tJnSn9LjGP7aY40a8O812UYE> prov:specializationOf <urn:uuid:988d18db-26c2-8ed7-9775-8d239fddc553> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:fc1e4651f0cdb9cf88188d5bf99cdb22 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][2]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:66c8148ca8847c60e7e59cd43c361739 bridge:arrivedAs <ni:///sha-256;ITnfEId3cgv_ZOPLmE_tJnSn9LjGP7aY40a8O812UYE> ;\n\toa:hasSelector _:fc1e4651f0cdb9cf88188d5bf99cdb22 .\n_:aa7685485937c607c72296c161512a4 oa:hasSource <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:wasGeneratedBy _:7194cca6521a4ce0fd760b735d437981 .\n_:66c8148ca8847c60e7e59cd43c361739 oa:hasSource <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:wasGeneratedBy _:7194cca6521a4ce0fd760b735d437981 .\n_:e5707e38e328c77ac685b72fce078a02 oa:hasSource <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:wasGeneratedBy _:7194cca6521a4ce0fd760b735d437981 .\n_:ea604ff3ba889f551894e22b2345c46a oa:hasSource <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:wasGeneratedBy _:7194cca6521a4ce0fd760b735d437981 .\n<ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:e467e72a54bb73ac5b1bb6d07c86d0c0 .\n_:b966adb0af0d0cbfc262a321aee2da85 prov:agent _:5a12ffded65e97dccfe2d25baf4b8f75 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:e467e72a54bb73ac5b1bb6d07c86d0c0 prov:qualifiedAssociation _:b966adb0af0d0cbfc262a321aee2da85 .\n_:5a12ffded65e97dccfe2d25baf4b8f75 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:7194cca6521a4ce0fd760b735d437981 <http://www.w3.org/2000/01/rdf-schema#label> \"C-CDA download\" ;\n\tprov:startedAtTime \"2025-07-02T09:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> a prov:Entity .\n_:7194cca6521a4ce0fd760b735d437981 a prov:Activity ;\n\tprov:used <ni:///sha-256;gc6XJvObXNTPQIA9-zWeF9rT-AzJphnPPuKto0AjhuQ> ;\n\tprov:qualifiedAssociation _:ba312aaadcbfad801b4b54edfd4a1241 .\n_:ba312aaadcbfad801b4b54edfd4a1241 prov:hadPlan _:c5efe4e6d0b49997fe74e2190d2bd6a6 .\n_:c5efe4e6d0b49997fe74e2190d2bd6a6 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"ccda\" ;\n\t<http://purl.org/pav/version> \"0.1.0\" .\n_:ba312aaadcbfad801b4b54edfd4a1241 prov:agent _:8db8ee7e8c96871ac1e90fd7cc4ce280 .\n_:8db8ee7e8c96871ac1e90fd7cc4ce280 a prov:SoftwareAgent ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"Cascade Bridge for Rust\" ;\n\t<http://purl.org/pav/version> \"0.1.0\" .\n"}, "expectedFindings": {"file": "fixtures/findings/organization-ids-in-one-order.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/organization-ids-in-one-order.ttl", "text": "@prefix ccda: <https://ns.cascadeprotocol.org/adapter/ccda/v1-draft#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n_:fc3eb9b7ad383b823a0ab54c312493bf a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b98806e9b71f08ea0e116da5e9a635f5 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='recordTarget' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='patientRole' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='addr' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:fc3eb9b7ad383b823a0ab54c312493bf oa:refinedBy _:b98806e9b71f08ea0e116da5e9a635f5 .\n_:f92c83fff5cdac26267ba82e80162bf0 a oa:Annotation ;\n\toa:hasTarget _:db597c2c9cfd13d0b7e6ba7bfa92bf09 .\n_:db597c2c9cfd13d0b7e6ba7bfa92bf09 oa:hasSource <../in/organization-ids-in-one-order.xml> ;\n\toa:hasSelector _:fc3eb9b7ad383b823a0ab54c312493bf .\n_:f92c83fff5cdac26267ba82e80162bf0 oa:hasBody ccda:patientContact ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='recordTarget' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='patientRole' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='addr' and namespace-uri()='urn:hl7-org:v3']\" ;\n\tsh:resultSeverity sh:Info .\n_:f15966cac005164dc55aa4d905cb6460 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:e9b3c27da6505b4ea5087dc9703d0259 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='recordTarget' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='patientRole' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='telecom' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f15966cac005164dc55aa4d905cb6460 oa:refinedBy _:e9b3c27da6505b4ea5087dc9703d0259 .\n_:c8f6305ae8fa7ffc2f1b854bf13eee5 a oa:Annotation ;\n\toa:hasTarget _:fb80fd05681657d09c3567c12f2adb9 .\n_:fb80fd05681657d09c3567c12f2adb9 oa:hasSource <../in/organization-ids-in-one-order.xml> ;\n\toa:hasSelector _:f15966cac005164dc55aa4d905cb6460 .\n_:c8f6305ae8fa7ffc2f1b854bf13eee5 oa:hasBody ccda:patientContact ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='recordTarget' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='patientRole' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='telecom' and namespace-uri()='urn:hl7-org:v3']\" ;\n\tsh:resultSeverity sh:Info .\n_:d32c37b93d42847b00d784f35c9b04f8 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b9140e50984f5f5d172598cdad869387 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d32c37b93d42847b00d784f35c9b04f8 oa:refinedBy _:b9140e50984f5f5d172598cdad869387 .\n_:eee9c0dacb9ee15d584b8a27dee50795 a oa:Annotation ;\n\toa:hasTarget _:a2df0398b7ce1558f74966e2d055cd9a .\n_:a2df0398b7ce1558f74966e2d055cd9a oa:hasSource <../in/organization-ids-in-one-order.xml> ;\n\toa:hasSelector _:d32c37b93d42847b00d784f35c9b04f8 .\n_:eee9c0dacb9ee15d584b8a27dee50795 oa:hasBody ccda:documentAuthor ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='author' and namespace-uri()='urn:hl7-org:v3']\" ;\n\t<https://ns.cascadeprotocol.org/cascade#occurrenceCount> 2 ;\n\tsh:resultSeverity sh:Info .\n_:c7ed619971b9db43d5b957e639d0f368 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:fe69678645fbd73ac9d3ee97bf3a52ad a oa:XPathSelector ;\n\trdf:value \"*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:c7ed619971b9db43d5b957e639d0f368 oa:refinedBy _:fe69678645fbd73ac9d3ee97bf3a52ad .\n_:c089299a80dad75190fe929983fe7a14 a oa:Annotation ;\n\toa:hasTarget _:bf08a43ec8e871141f395f0e0a269b5f .\n_:bf08a43ec8e871141f395f0e0a269b5f oa:hasSource <../in/organization-ids-in-one-order.xml> ;\n\toa:hasSelector _:c7ed619971b9db43d5b957e639d0f368 .\n_:c089299a80dad75190fe929983fe7a14 oa:hasBody ccda:concernTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3']\" ;\n\tsh:resultSeverity sh:Info .\n_:ad7d617abf3ecf262502b1b65e4961a7 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:abd7d0ac30fbe7620e2a70fadeaed178 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ad7d617abf3ecf262502b1b65e4961a7 oa:refinedBy _:abd7d0ac30fbe7620e2a70fadeaed178 .\n_:f3b91d6a34bb4df65addce3da6c80dd7 a oa:Annotation ;\n\toa:hasTarget _:aba0998fde23de8aeb7d9cb6dd042a5a .\n_:aba0998fde23de8aeb7d9cb6dd042a5a oa:hasSource <../in/organization-ids-in-one-order.xml> ;\n\toa:hasSelector _:ad7d617abf3ecf262502b1b65e4961a7 .\n_:f3b91d6a34bb4df65addce3da6c80dd7 oa:hasBody ccda:statementCode ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3']/@code\" ;\n\tsh:resultSeverity sh:Info .\n_:aab70325f5d7b63efbb2af0af7771989 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a4e8024333638c7a3f497995e5d7c46b oa:hasSource <../in/organization-ids-in-one-order.xml> .\n_:aab70325f5d7b63efbb2af0af7771989 oa:refinedBy _:e3f9d018be340f78de600ce56757e66e .\n_:e3f9d018be340f78de600ce56757e66e a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a4e8024333638c7a3f497995e5d7c46b oa:hasSelector _:aab70325f5d7b63efbb2af0af7771989 .\n_:c6b6f2f1c66cccc23b4d06131e746608 oa:hasTarget _:a4e8024333638c7a3f497995e5d7c46b .\n_:dec4c4946c04fec0cad82cc6705ec659 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f3dd632a85bfa459f4a85b72a2a921b7 oa:hasSource <../in/organization-ids-in-one-order.xml> .\n_:dec4c4946c04fec0cad82cc6705ec659 oa:refinedBy _:ffb262da7779dae41a667c6f1619cdf5 .\n_:ffb262da7779dae41a667c6f1619cdf5 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f3dd632a85bfa459f4a85b72a2a921b7 oa:hasSelector _:dec4c4946c04fec0cad82cc6705ec659 .\n_:baef2653dd8d25339723fd7a2241d4b3 oa:hasTarget _:f3dd632a85bfa459f4a85b72a2a921b7 .\n_:c6b6f2f1c66cccc23b4d06131e746608 sh:resultSeverity sh:Info .\n_:baef2653dd8d25339723fd7a2241d4b3 sh:resultSeverity sh:Info .\n_:c6b6f2f1c66cccc23b4d06131e746608 a oa:Annotation ;\n\toa:hasBody ccda:documentId ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2.16.840.1.113883.19.5.99999.1|CCD-2025-0412\" .\n_:baef2653dd8d25339723fd7a2241d4b3 a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:b47febf8aafd34bce8766abd3ceddf3c a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a66f838d0f7d1404bebe87d6a8814693 oa:hasSource <../in/organization-ids-in-one-order.xml> .\n_:b47febf8aafd34bce8766abd3ceddf3c oa:refinedBy _:a12aeee96e918bc9ec1c8a93d17327e2 .\n_:a12aeee96e918bc9ec1c8a93d17327e2 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a66f838d0f7d1404bebe87d6a8814693 oa:hasSelector _:b47febf8aafd34bce8766abd3ceddf3c .\n_:a8c5e436de00fd609544465350d0093b oa:hasTarget _:a66f838d0f7d1404bebe87d6a8814693 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody ccda:narrative ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Substance\\nReaction\\nSeverity\\nStatus\" .\n", "empty": false}}