{"name": "organizations-root-and-extension", "comment": "The custodian's NPI names its organization record, the name the FHIR R4 adapter's bundle-document-custodian-and-authors gives an Organization with that NPI: cascade-vocabulary's organization-from-npi naming vector.", "input": {"file": "fixtures/in/organizations-root-and-extension.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/organizations-root-and-extension.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=\"5B0E7A0C-1F2D-4E3B-9A8C-7D6E5F4A3B2C\"/>\n        <name>Riverside Cardiology Group</name>\n        <addr use=\"WP\">\n          <streetAddressLine>Suite 400</streetAddressLine>\n          <streetAddressLine>88 Heron Street</streetAddressLine>\n          <city>Riverside</city>\n          <state>OR</state>\n          <postalCode>97001</postalCode>\n        </addr>\n      </representedOrganization>\n    </assignedAuthor>\n  </author>\n  <custodian>\n    <assignedCustodian>\n      <representedCustodianOrganization>\n        <id root=\"2.16.840.1.113883.4.6\" extension=\"1234567893\"/>\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/organizations-root-and-extension.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/organizations-root-and-extension.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;dp0aZx0isCD0oOAO5QdqqYwMLrixiPYuGoUC9-ihAno> cascade:allergyType \"allergy\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergyCriticality \"high\" ;\n\tcascade:onsetDate \"2019-03-05\"^^xsd:date ;\n\tcascade:allergySeverity \"moderate\" ;\n\tcascade:narrativeText \"Penicillin G benzathine\\nHives\\nModerate\\nActive\" ;\n\tcascade:allergenName \"Penicillin G benzathine\" ;\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:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> a cascade:Organization .\n<ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> prov:wasGeneratedBy _:dcd6b2c2c3338683f89b635be22d5afa ;\n\tprov:wasAttributedTo <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> .\n_:dcd6b2c2c3338683f89b635be22d5afa prov:qualifiedAssociation _:dd879685a927d650f3fbaa79d36586f5 .\n_:dd879685a927d650f3fbaa79d36586f5 prov:agent <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> ;\n\tprov:hadRole cascade:CustodianRole .\n<ni:///sha-256;UToHidhmVuB-2HkqO-7bZfgwOXLEOSkEnUVlnoHoGxQ> prov:specializationOf <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> .\n_:958b11dfda04339fbacae00b6c1e6998 bridge:arrivedAs <ni:///sha-256;UToHidhmVuB-2HkqO-7bZfgwOXLEOSkEnUVlnoHoGxQ> ;\n\toa:hasSelector _:ab3373865d1685b33bf072c9e07c17c1 .\n_:ab3373865d1685b33bf072c9e07c17c1 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;UToHidhmVuB-2HkqO-7bZfgwOXLEOSkEnUVlnoHoGxQ> foaf:name \"Riverside Community Hospital\" ;\n\torg:identifier \"urn:oid:2.16.840.1.113883.19.5.99999.3\"^^<urn:ietf:rfc:3986> , \"1234567893\"^^<http://hl7.org/fhir/sid/us-npi> ;\n\tcascade:organizationAddress \"1 Hospital Drive\\nRiverside\\nOR\\n97000\\nUS\" .\n<urn:uuid:66732672-97e1-8f90-8e3a-0d319df4b89f> a cascade:Organization .\n<ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> prov:wasGeneratedBy _:d612e8e3da8842fe07d4ce2cf1901418 ;\n\tprov:wasAttributedTo <urn:uuid:66732672-97e1-8f90-8e3a-0d319df4b89f> .\n_:d612e8e3da8842fe07d4ce2cf1901418 prov:qualifiedAssociation _:c915e4d2ccd8a424d09b0f1db6673054 .\n_:c915e4d2ccd8a424d09b0f1db6673054 prov:agent <urn:uuid:66732672-97e1-8f90-8e3a-0d319df4b89f> ;\n\tprov:hadRole cascade:AuthorRole .\n<ni:///sha-256;EA9NmP7da1fxxKGtsMwCpkVbuC_iihJ2A_kOnaYgM4c> prov:specializationOf <urn:uuid:66732672-97e1-8f90-8e3a-0d319df4b89f> .\n_:1a797f7197399f0bc3f94d69c6a9dd25 bridge:arrivedAs <ni:///sha-256;EA9NmP7da1fxxKGtsMwCpkVbuC_iihJ2A_kOnaYgM4c> ;\n\toa:hasSelector _:bd9334e672687918549fd9839b718b29 .\n_:bd9334e672687918549fd9839b718b29 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='assignedAuthor' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='representedOrganization' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n<ni:///sha-256;EA9NmP7da1fxxKGtsMwCpkVbuC_iihJ2A_kOnaYgM4c> foaf:name \"Riverside Cardiology Group\" ;\n\torg:identifier \"urn:uuid:5b0e7a0c-1f2d-4e3b-9a8c-7d6e5f4a3b2c\"^^<urn:ietf:rfc:3986> ;\n\tcascade:organizationAddress \"Suite 400\\n88 Heron Street\\nRiverside\\nOR\\n97001\" .\n<ni:///sha-256;nFu8T0rCH7go-as-OlVi5HMm0kEg49sWOo5M-NqiAfE> 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;46FXvlXf_TOJzy2uX-YAX3-k3ZhgOOu21vWrpRP6RD0> foaf:givenName \"Robin\" ;\n\tfoaf:familyName \"Ahmadi\" ;\n\tcascade:dateOfBirth \"1978-02-14\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<urn:uuid:337dff2f-5a85-8941-a05b-dfac5f486fbb> 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;46FXvlXf_TOJzy2uX-YAX3-k3ZhgOOu21vWrpRP6RD0> prov:specializationOf <urn:uuid:337dff2f-5a85-8941-a05b-dfac5f486fbb> .\n_:db9785d323474e451a0ae564405433bf 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_:da536cadc673da7cf4526484c7ba9994 bridge:arrivedAs <ni:///sha-256;46FXvlXf_TOJzy2uX-YAX3-k3ZhgOOu21vWrpRP6RD0> ;\n\toa:hasSelector _:db9785d323474e451a0ae564405433bf .\n<urn:uuid:563e398f-16d8-8a42-84ea-5243f4d08f50> 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;dp0aZx0isCD0oOAO5QdqqYwMLrixiPYuGoUC9-ihAno> prov:specializationOf <urn:uuid:563e398f-16d8-8a42-84ea-5243f4d08f50> ;\n\tcascade:patient <urn:uuid:337dff2f-5a85-8941-a05b-dfac5f486fbb> .\n_:fe8fc6845f9d35e13a4df0d334403040 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_:e5badbf7565ffe8a61e4432fde31bcba bridge:arrivedAs <ni:///sha-256;dp0aZx0isCD0oOAO5QdqqYwMLrixiPYuGoUC9-ihAno> ;\n\toa:hasSelector _:fe8fc6845f9d35e13a4df0d334403040 .\n<urn:uuid:26f36f01-ac52-8eb3-9f46-9c788777b248> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;nFu8T0rCH7go-as-OlVi5HMm0kEg49sWOo5M-NqiAfE> prov:specializationOf <urn:uuid:26f36f01-ac52-8eb3-9f46-9c788777b248> ;\n\tcascade:patient <urn:uuid:337dff2f-5a85-8941-a05b-dfac5f486fbb> .\n_:d7f0aa4fe62be674f06b070edc1e605 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_:9b35dca96db9dd6186fb304f59854cff bridge:arrivedAs <ni:///sha-256;nFu8T0rCH7go-as-OlVi5HMm0kEg49sWOo5M-NqiAfE> ;\n\toa:hasSelector _:d7f0aa4fe62be674f06b070edc1e605 ;\n\toa:hasSource <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasDerivedFrom <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasGeneratedBy _:ebf15922c9224ae51071db8c543d540c .\n_:da536cadc673da7cf4526484c7ba9994 oa:hasSource <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasDerivedFrom <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasGeneratedBy _:ebf15922c9224ae51071db8c543d540c .\n_:e5badbf7565ffe8a61e4432fde31bcba oa:hasSource <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasDerivedFrom <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasGeneratedBy _:ebf15922c9224ae51071db8c543d540c .\n_:1a797f7197399f0bc3f94d69c6a9dd25 oa:hasSource <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasDerivedFrom <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasGeneratedBy _:ebf15922c9224ae51071db8c543d540c .\n_:958b11dfda04339fbacae00b6c1e6998 oa:hasSource <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasDerivedFrom <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:wasGeneratedBy _:ebf15922c9224ae51071db8c543d540c .\n<ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:f4d9dfacd7173305693ce699e79759bc .\n_:75a166335822de2a899b267d0f9dc029 prov:agent _:3ae012f3ac3c462d80e9545ee0854f56 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:f4d9dfacd7173305693ce699e79759bc prov:qualifiedAssociation _:75a166335822de2a899b267d0f9dc029 .\n_:3ae012f3ac3c462d80e9545ee0854f56 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:ebf15922c9224ae51071db8c543d540c <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;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> a prov:Entity .\n_:ebf15922c9224ae51071db8c543d540c a prov:Activity ;\n\tprov:used <ni:///sha-256;XOqVOsas_iUQfe8_KpJjN-zJ3PaYI2KuEC6c4CtGHLs> ;\n\tprov:qualifiedAssociation _:ae30ca6248c49de01deca2ae07bbd961 .\n_:ae30ca6248c49de01deca2ae07bbd961 prov:hadPlan _:14b837b4eaf5cab17276b4c9b3ffb454 .\n_:14b837b4eaf5cab17276b4c9b3ffb454 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_:ae30ca6248c49de01deca2ae07bbd961 prov:agent _:6f66f3d5d33cdf1ba3d7a82584fdd336 .\n_:6f66f3d5d33cdf1ba3d7a82584fdd336 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/organizations-root-and-extension.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/organizations-root-and-extension.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_:df74d508f01703349accf7a589af64a8 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:eb396fcd988215033f618af6ec73a14b 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_:df74d508f01703349accf7a589af64a8 oa:refinedBy _:eb396fcd988215033f618af6ec73a14b .\n_:df43318923c9af5e35dbb6f9a5080cdc a oa:Annotation ;\n\toa:hasTarget _:a274fdf212520fa5f8e51c4eab536a89 .\n_:a274fdf212520fa5f8e51c4eab536a89 oa:hasSource <../in/organizations-root-and-extension.xml> ;\n\toa:hasSelector _:df74d508f01703349accf7a589af64a8 .\n_:df43318923c9af5e35dbb6f9a5080cdc 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_:c6f25e2ba7d4f1b39e98e0b60ffa81c0 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:fb4f816af0a1bb2a0edcb57d4e559316 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_:c6f25e2ba7d4f1b39e98e0b60ffa81c0 oa:refinedBy _:fb4f816af0a1bb2a0edcb57d4e559316 .\n_:fb8a585b5e30c8bed9abaef844ce0e6a a oa:Annotation ;\n\toa:hasTarget _:e4687b582f2b5cf5304187f842a78f88 .\n_:e4687b582f2b5cf5304187f842a78f88 oa:hasSource <../in/organizations-root-and-extension.xml> ;\n\toa:hasSelector _:c6f25e2ba7d4f1b39e98e0b60ffa81c0 .\n_:fb8a585b5e30c8bed9abaef844ce0e6a 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_:e59f16c7db9d971c5a4640a8d2ee7d7 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b20d74c3d6e040c77e2f33210c5f8e72 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e59f16c7db9d971c5a4640a8d2ee7d7 oa:refinedBy _:b20d74c3d6e040c77e2f33210c5f8e72 .\n_:b10acc4170f3f4881c64a11fbdf7a473 a oa:Annotation ;\n\toa:hasTarget _:b6cfb8a74252d3d25ab2025cba00aabd .\n_:b6cfb8a74252d3d25ab2025cba00aabd oa:hasSource <../in/organizations-root-and-extension.xml> ;\n\toa:hasSelector _:e59f16c7db9d971c5a4640a8d2ee7d7 .\n_:b10acc4170f3f4881c64a11fbdf7a473 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\tsh:resultSeverity sh:Info .\n_:c534089727c2dd1b19abf21bc1381a49 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:c3e493ad9c0f2ef81d334a124b18d274 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_:c534089727c2dd1b19abf21bc1381a49 oa:refinedBy _:c3e493ad9c0f2ef81d334a124b18d274 .\n_:d5c5213e0db76cb36fa87f3330c8de5e a oa:Annotation ;\n\toa:hasTarget _:e3650f49559a352190c528f382e35d95 .\n_:e3650f49559a352190c528f382e35d95 oa:hasSource <../in/organizations-root-and-extension.xml> ;\n\toa:hasSelector _:c534089727c2dd1b19abf21bc1381a49 .\n_:d5c5213e0db76cb36fa87f3330c8de5e 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_:e5578bd5bbfc831dcedc420e0aae52e1 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:fc81cc49441e4112ac6d78a31068208c 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_:e5578bd5bbfc831dcedc420e0aae52e1 oa:refinedBy _:fc81cc49441e4112ac6d78a31068208c .\n_:c337e8cb57c6ecf2061d9c831ba8c38c a oa:Annotation ;\n\toa:hasTarget _:c29693b1bc23a1d2277cc085adc4475e .\n_:c29693b1bc23a1d2277cc085adc4475e oa:hasSource <../in/organizations-root-and-extension.xml> ;\n\toa:hasSelector _:e5578bd5bbfc831dcedc420e0aae52e1 .\n_:c337e8cb57c6ecf2061d9c831ba8c38c 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_:c3a15066683da0a8e1a006a357a831dd a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:dceee705110cfa2e2fc116ecfaf5ab24 oa:hasSource <../in/organizations-root-and-extension.xml> .\n_:c3a15066683da0a8e1a006a357a831dd oa:refinedBy _:f7c1117de4dd86171e84b72d2197b532 .\n_:f7c1117de4dd86171e84b72d2197b532 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:dceee705110cfa2e2fc116ecfaf5ab24 oa:hasSelector _:c3a15066683da0a8e1a006a357a831dd .\n_:c57c81116593e96a1aa4497cb663ecd7 oa:hasTarget _:dceee705110cfa2e2fc116ecfaf5ab24 .\n_:eae08324a80de363fd045b31ca206b9f a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:d3463d55c2912a90e50808313475dc04 oa:hasSource <../in/organizations-root-and-extension.xml> .\n_:eae08324a80de363fd045b31ca206b9f oa:refinedBy _:c1092eb3bdbb2c3e671e9cd05fe40a1b .\n_:c1092eb3bdbb2c3e671e9cd05fe40a1b a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d3463d55c2912a90e50808313475dc04 oa:hasSelector _:eae08324a80de363fd045b31ca206b9f .\n_:bfc7d8b6fbe96ce62c946ea8f340046b oa:hasTarget _:d3463d55c2912a90e50808313475dc04 .\n_:c57c81116593e96a1aa4497cb663ecd7 sh:resultSeverity sh:Info .\n_:bfc7d8b6fbe96ce62c946ea8f340046b sh:resultSeverity sh:Info .\n_:c57c81116593e96a1aa4497cb663ecd7 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_:bfc7d8b6fbe96ce62c946ea8f340046b a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:e7b4a41f7717eb47c9c443230a00734 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b59746e3fa4f64bbbf4a9b30883c407a oa:hasSource <../in/organizations-root-and-extension.xml> .\n_:e7b4a41f7717eb47c9c443230a00734 oa:refinedBy _:b22b8c3ec01ef6ac5c7e8b9ce8fa5dff .\n_:b22b8c3ec01ef6ac5c7e8b9ce8fa5dff 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_:b59746e3fa4f64bbbf4a9b30883c407a oa:hasSelector _:e7b4a41f7717eb47c9c443230a00734 .\n_:bae1b8c0ee0890eb0fdc0a921db30ead oa:hasTarget _:b59746e3fa4f64bbbf4a9b30883c407a ;\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}}