{"name": "custodian-and-author", "comment": "A custodian and an author naming one organization by one id: one record, its version read from the custodian; the author's address, which that version does not carry, is a finding.", "input": {"file": "fixtures/in/custodian-and-author.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/custodian-and-author.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        <name>Riverside Community Hospital</name>\n        <addr use=\"WP\">\n          <streetAddressLine>12 Clinic Lane</streetAddressLine>\n          <city>Riverside</city>\n          <state>OR</state>\n          <postalCode>97002</postalCode>\n        </addr>\n      </representedOrganization>\n    </assignedAuthor>\n  </author>\n  <custodian>\n    <assignedCustodian>\n      <representedCustodianOrganization>\n        <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n        <name>Riverside Community Hospital</name>\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/custodian-and-author.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/custodian-and-author.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:allergyType \"allergy\" ;\n\tcascade:allergyCriticality \"high\" ;\n\tcascade:onsetDate \"2019-03-05\"^^xsd:date ;\n\tcascade:narrativeText \"Penicillin G benzathine\\nHives\\nModerate\\nActive\" ;\n\tcascade:clinicalStatus \"active\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergySeverity \"moderate\" ;\n\tcascade:allergenName \"Penicillin G benzathine\" ;\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;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> prov:wasGeneratedBy _:ce251d4a0a0d6a67fc9b305c1a5357b ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:ce251d4a0a0d6a67fc9b305c1a5357b prov:qualifiedAssociation _:de73cc00e5ece92ab78d0b89cd33104 .\n_:de73cc00e5ece92ab78d0b89cd33104 prov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> ;\n\tprov:hadRole cascade:CustodianRole .\n<ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> prov:specializationOf <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:b228b87ee7da8eb046cc686d9ea29f3f bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:a4d526c8e8329f1f71cfb8052968f8ca .\n_:a4d526c8e8329f1f71cfb8052968f8ca 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;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> foaf:name \"Riverside Community Hospital\" ;\n\torg:identifier \"urn:oid:2.16.840.1.113883.19.5.99999.3\"^^<urn:ietf:rfc:3986> .\n<ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> prov:wasGeneratedBy _:fc01540966f43dc4bbcc0c611943b550 .\n_:fc01540966f43dc4bbcc0c611943b550 prov:qualifiedAssociation _:fbb9e3a3c36aea275faaf2d7a87ce931 .\n_:fbb9e3a3c36aea275faaf2d7a87ce931 prov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> ;\n\tprov:hadRole cascade:AuthorRole .\n<ni:///sha-256;ITnfEId3cgv_ZOPLmE_tJnSn9LjGP7aY40a8O812UYE> cascade:noteOrDocumentTypeName \"Problem List\" ;\n\tcascade:noteOrDocumentDate \"2025-04-12T09:30:00-05:00\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTitle \"Problems\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/11450-4> ;\n\tcascade:narrativeText \"Seasonal allergic rhinitis, since 2016.\" .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> foaf:familyName \"Ahmadi\" ;\n\tfoaf:givenName \"Robin\" ;\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_:f8fea29097c7046b7d40ea5c9d7a761b 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_:a65115225399943dff71e4b943867d32 bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:f8fea29097c7046b7d40ea5c9d7a761b .\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_:ebfd96163dc7608bd89eaeee4c097197 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_:c97e8aeac2b6541997dd12dee5f19853 bridge:arrivedAs <ni:///sha-256;0-haeIOQsSugdn7ttHSLaIwILpzgKMeGG-I_LG9RLQg> ;\n\toa:hasSelector _:ebfd96163dc7608bd89eaeee4c097197 .\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_:cebf20d90ab5fd0bc377261a5b952cb8 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_:7abc0e02f26efb68bddb51e9bc7c65c7 bridge:arrivedAs <ni:///sha-256;ITnfEId3cgv_ZOPLmE_tJnSn9LjGP7aY40a8O812UYE> ;\n\toa:hasSelector _:cebf20d90ab5fd0bc377261a5b952cb8 .\n_:b228b87ee7da8eb046cc686d9ea29f3f oa:hasSource <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:wasGeneratedBy _:dd102bf41d55c6805da2fda80a9004bf .\n_:7abc0e02f26efb68bddb51e9bc7c65c7 oa:hasSource <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:wasGeneratedBy _:dd102bf41d55c6805da2fda80a9004bf .\n_:c97e8aeac2b6541997dd12dee5f19853 oa:hasSource <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:wasGeneratedBy _:dd102bf41d55c6805da2fda80a9004bf .\n_:a65115225399943dff71e4b943867d32 oa:hasSource <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:wasGeneratedBy _:dd102bf41d55c6805da2fda80a9004bf .\n<ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:f763b5605e11f5d64756bbb8c34f367c .\n_:fa02ae26cab194a9099d2c93a0b5a829 prov:agent _:1f60c7f52d28d8c1de3d56977bd25c9f ;\n\tprov:hadRole cascade:TransmitterRole .\n_:f763b5605e11f5d64756bbb8c34f367c prov:qualifiedAssociation _:fa02ae26cab194a9099d2c93a0b5a829 .\n_:1f60c7f52d28d8c1de3d56977bd25c9f <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:dd102bf41d55c6805da2fda80a9004bf <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;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> a prov:Entity .\n_:dd102bf41d55c6805da2fda80a9004bf a prov:Activity ;\n\tprov:used <ni:///sha-256;-kfsQSmgrokIc4Yo75MAh5dsc3IhZfjqTit7wzcpysQ> ;\n\tprov:qualifiedAssociation _:7871bbe81c7b1485e4d867ebc84d976b .\n_:7871bbe81c7b1485e4d867ebc84d976b prov:hadPlan _:58afe1e9183b7e78c173324d976f3497 .\n_:58afe1e9183b7e78c173324d976f3497 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_:7871bbe81c7b1485e4d867ebc84d976b prov:agent _:fdbd2a452f9b8e178660d13eae3d06d8 .\n_:fdbd2a452f9b8e178660d13eae3d06d8 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/custodian-and-author.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/custodian-and-author.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_:b005a2cc6fcb4295aabbe44ceec0afbf a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:d4a33cdae70a83a76647d4aa7f5d074d 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_:b005a2cc6fcb4295aabbe44ceec0afbf oa:refinedBy _:d4a33cdae70a83a76647d4aa7f5d074d .\n_:bb40697b650ff2d3d0f9cfe0bca4cbe6 a oa:Annotation ;\n\toa:hasTarget _:fc8a9d4cc7458622999767fb4d290bc6 .\n_:fc8a9d4cc7458622999767fb4d290bc6 oa:hasSource <../in/custodian-and-author.xml> ;\n\toa:hasSelector _:b005a2cc6fcb4295aabbe44ceec0afbf .\n_:bb40697b650ff2d3d0f9cfe0bca4cbe6 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_:dfaf0023fcd5290e4b6d7727c1d52262 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a3c8fd01aa6d4282d96e7155bc684d3e 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_:dfaf0023fcd5290e4b6d7727c1d52262 oa:refinedBy _:a3c8fd01aa6d4282d96e7155bc684d3e .\n_:a0a5266e40aa578161cc9dd2ac119287 a oa:Annotation ;\n\toa:hasTarget _:eeedcde7bde69bd5eddbaac7e44080d1 .\n_:eeedcde7bde69bd5eddbaac7e44080d1 oa:hasSource <../in/custodian-and-author.xml> ;\n\toa:hasSelector _:dfaf0023fcd5290e4b6d7727c1d52262 .\n_:a0a5266e40aa578161cc9dd2ac119287 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_:e6f33666df2e5c97a81913b2ea0bf9d3 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a4215615b6d006a74a4123d9fda84a38 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e6f33666df2e5c97a81913b2ea0bf9d3 oa:refinedBy _:a4215615b6d006a74a4123d9fda84a38 .\n_:a1155fa3ec90b05c28b61442cbfa27f7 a oa:Annotation ;\n\toa:hasTarget _:f68dd2f7201275c17c524c27712fe79a .\n_:f68dd2f7201275c17c524c27712fe79a oa:hasSource <../in/custodian-and-author.xml> ;\n\toa:hasSelector _:e6f33666df2e5c97a81913b2ea0bf9d3 .\n_:a1155fa3ec90b05c28b61442cbfa27f7 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_:dae980fe9f3e3497e72f11f95507e18 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:d63400a9fda04edba6d35221c4b9e712 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_:dae980fe9f3e3497e72f11f95507e18 oa:refinedBy _:d63400a9fda04edba6d35221c4b9e712 .\n_:f098e8cd20d84f0877e02565b880ff57 a oa:Annotation ;\n\toa:hasTarget _:a20e4f0c413bf3c41dc3f6924bfc81b1 .\n_:a20e4f0c413bf3c41dc3f6924bfc81b1 oa:hasSource <../in/custodian-and-author.xml> ;\n\toa:hasSelector _:dae980fe9f3e3497e72f11f95507e18 .\n_:f098e8cd20d84f0877e02565b880ff57 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_:e4107598c5ee58c8de05dc78e8665670 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f20ab0b96f91c53f35bd3b527a9c7077 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_:e4107598c5ee58c8de05dc78e8665670 oa:refinedBy _:f20ab0b96f91c53f35bd3b527a9c7077 .\n_:e1c9baf4d483ad7f3f51001ee2430f65 a oa:Annotation ;\n\toa:hasTarget _:b37507f6d787c499e475b6262bb41a24 .\n_:b37507f6d787c499e475b6262bb41a24 oa:hasSource <../in/custodian-and-author.xml> ;\n\toa:hasSelector _:e4107598c5ee58c8de05dc78e8665670 .\n_:e1c9baf4d483ad7f3f51001ee2430f65 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_:e4334a0e796d1ce74f012201cb2722cd a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:ccd508047c954fff192d339379bf707c oa:hasSource <../in/custodian-and-author.xml> .\n_:e4334a0e796d1ce74f012201cb2722cd oa:refinedBy _:b4d1f77e13cace836b722e23ba635b3a .\n_:b4d1f77e13cace836b722e23ba635b3a a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ccd508047c954fff192d339379bf707c oa:hasSelector _:e4334a0e796d1ce74f012201cb2722cd .\n_:e89d6837b801007f798ac8785027534c oa:hasTarget _:ccd508047c954fff192d339379bf707c .\n_:ac6064567fbd0bfaf266b6cd58eb6ab0 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:af4ab7e6883f3fc3258f5663d5b4668d oa:hasSource <../in/custodian-and-author.xml> .\n_:ac6064567fbd0bfaf266b6cd58eb6ab0 oa:refinedBy _:c41586198c8b9ef238cefdf91d74e87d .\n_:c41586198c8b9ef238cefdf91d74e87d a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:af4ab7e6883f3fc3258f5663d5b4668d oa:hasSelector _:ac6064567fbd0bfaf266b6cd58eb6ab0 .\n_:d66b78d922b30a750b8d7087ecebe044 oa:hasTarget _:af4ab7e6883f3fc3258f5663d5b4668d .\n_:e89d6837b801007f798ac8785027534c sh:resultSeverity sh:Info .\n_:d66b78d922b30a750b8d7087ecebe044 sh:resultSeverity sh:Info .\n_:e89d6837b801007f798ac8785027534c 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_:d66b78d922b30a750b8d7087ecebe044 a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:db345a0d8a5199ccdf921795db0c80c5 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f490eb05be66d7ddbda71fe951e1ffb0 oa:hasSource <../in/custodian-and-author.xml> .\n_:db345a0d8a5199ccdf921795db0c80c5 oa:refinedBy _:a4a6cb2b2a4cac94ec44eba3d6a6594a .\n_:a4a6cb2b2a4cac94ec44eba3d6a6594a 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_:f490eb05be66d7ddbda71fe951e1ffb0 oa:hasSelector _:db345a0d8a5199ccdf921795db0c80c5 .\n_:d4766087b0422f30827020fd2511438d oa:hasTarget _:f490eb05be66d7ddbda71fe951e1ffb0 ;\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_:d1574cb98c1213f5a3d1b8891b42f5c1 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:d5b3b12376dc453153d4a745089e4d1d oa:hasSource <../in/custodian-and-author.xml> .\n_:d1574cb98c1213f5a3d1b8891b42f5c1 oa:refinedBy _:a88284bc6680ed7dd5068abe64035d15 .\n_:a88284bc6680ed7dd5068abe64035d15 a oa:XPathSelector ;\n\trdf:value \"*[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_:d5b3b12376dc453153d4a745089e4d1d oa:hasSelector _:d1574cb98c1213f5a3d1b8891b42f5c1 .\n_:d580d2ba82c77a1e8c50b966d779c8a6 oa:hasTarget _:d5b3b12376dc453153d4a745089e4d1d ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody ccda:duplicateOrganizationNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"urn:oid:2.16.840.1.113883.19.5.99999.3\"^^<urn:ietf:rfc:3986> .\n", "empty": false}}