{"name": "allergy-status-observation-beside-concern-act", "comment": "Four allergies whose Allergy Status Observation disagrees with their concern act: resolved beside active is resolved, active beside completed is active, and inactive beside nullified is inactive, with no finding for the concern act, since the allergy states a status of its own. A fourth states a status outside the map, recurrence, beside an active concern act: it carries no status, the act is not consulted, and the finding is ccda:allergyStatusNotMapped.", "input": {"file": "fixtures/in/allergy-status-observation-beside-concern-act.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/allergy-status-observation-beside-concern-act.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-2026-1032\"/>\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=\"20261031093000-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      <patient>\n        <name use=\"L\">\n          <given>Robin</given>\n          <family>Ahmadi</family>\n        </name>\n        <administrativeGenderCode code=\"F\" codeSystem=\"2.16.840.1.113883.5.1\"/>\n        <birthTime value=\"19780214\"/>\n      </patient>\n    </patientRole>\n  </recordTarget>\n  <author>\n    <time value=\"20261031093000-0500\"/>\n    <assignedAuthor>\n      <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n      <representedOrganization>\n        <name>Riverside Community Hospital</name>\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            <list>\n              <item>Aspirin</item>\n              <item>Penicillin G</item>\n              <item>Codeine</item>\n              <item>Ibuprofen</item>\n            </list>\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\"/>\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-1\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\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-1\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <statusCode code=\"completed\"/>\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=\"1191\" displayName=\"aspirin\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\"/>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"REFR\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2014-06-09\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CD\" code=\"413322009\" displayName=\"Resolved\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.30\"/>\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-2\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"completed\"/>\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-2\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <statusCode code=\"completed\"/>\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                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"REFR\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2014-06-09\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CD\" code=\"55561003\" displayName=\"Active\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.30\"/>\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-3\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"nullified\"/>\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-3\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <statusCode code=\"completed\"/>\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=\"2670\" displayName=\"codeine\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\"/>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"REFR\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2014-06-09\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CD\" code=\"73425007\" displayName=\"Inactive\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.30\"/>\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-4\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\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-4\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <statusCode code=\"completed\"/>\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=\"5640\" displayName=\"ibuprofen\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\"/>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"REFR\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2014-06-09\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CD\" code=\"246455001\" displayName=\"Recurrence\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/allergy-status-observation-beside-concern-act.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/allergy-status-observation-beside-concern-act.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;kTrn9r_1OBK71FPlGisSW-HjsXn3QRAO9s3hG-2KaEo> cascade:allergenName \"ibuprofen\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/5640> .\n<ni:///sha-256;ucLsmI95MV-nvlVNpwmkZZeykRs3sCbp_wbDquQOxm8> cascade:allergyType \"allergy\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:clinicalStatus \"inactive\" ;\n\tcascade:allergenName \"codeine\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/2670> .\n<ni:///sha-256;4TMvDWdC6D4iVGw9Q9Txm2uvwQA-jK68xyKfZM-oZ3s> cascade:clinicalStatus \"active\" ;\n\tcascade:allergenName \"penicillin G\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/7980> .\n<ni:///sha-256;peilLI0_-VEHUdoYXekUv8m-SkRf_AzCMx-b0-N095g> cascade:allergyCategory \"medication\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:allergenName \"aspirin\" ;\n\tcascade:clinicalStatus \"resolved\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/1191> .\n<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> prov:wasGeneratedBy _:ae2bd853767f8f57866274ab22b596a1 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:ae2bd853767f8f57866274ab22b596a1 prov:qualifiedAssociation _:ab736cb32b2985eea7e15dd874037d9f .\n_:ab736cb32b2985eea7e15dd874037d9f 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_:3dd46698bc9dbc059533c859940a6954 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:b62195eaa727e46bb2bde22f1fa6dff1 .\n_:b62195eaa727e46bb2bde22f1fa6dff1 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;TBeN1QQLdjX5XKOn2oXXIylFx67Xv8eMI1klqERFpTE> cascade:noteOrDocumentDate \"2026-10-31T09:30:00-05:00\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTitle \"Allergies and Adverse Reactions\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeName \"Allergies and Adverse Reactions\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/48765-2> ;\n\tcascade:narrativeText \"Aspirin\\nPenicillin G\\nCodeine\\nIbuprofen\" .\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_:ae1deac2563163627ed382d2854d42db 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_:8f1e2f255570ddfac29e8d7d53db102f bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:ae1deac2563163627ed382d2854d42db .\n<urn:uuid:3a38e315-a062-82ab-bd74-595c80f639d0> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4:ALG-4> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-4\" .\n<ni:///sha-256;kTrn9r_1OBK71FPlGisSW-HjsXn3QRAO9s3hG-2KaEo> prov:specializationOf <urn:uuid:3a38e315-a062-82ab-bd74-595c80f639d0> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:e9b1c8af0f1248028d421aa742e808b3 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'][4]/*[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_:55cf86f5977b67a62aa468e8cb05726b bridge:arrivedAs <ni:///sha-256;kTrn9r_1OBK71FPlGisSW-HjsXn3QRAO9s3hG-2KaEo> ;\n\toa:hasSelector _:e9b1c8af0f1248028d421aa742e808b3 .\n<urn:uuid:e3ae607e-0746-8a25-92df-cfc5584e4ac6> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4:ALG-3> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-3\" .\n<ni:///sha-256;ucLsmI95MV-nvlVNpwmkZZeykRs3sCbp_wbDquQOxm8> prov:specializationOf <urn:uuid:e3ae607e-0746-8a25-92df-cfc5584e4ac6> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:c48949a93f401e4a56cce0365f313b50 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'][3]/*[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_:c9c4e38b7909e846009f9115abb7e8a9 bridge:arrivedAs <ni:///sha-256;ucLsmI95MV-nvlVNpwmkZZeykRs3sCbp_wbDquQOxm8> ;\n\toa:hasSelector _:c48949a93f401e4a56cce0365f313b50 .\n<urn:uuid:6c3825a6-6db0-83b8-a789-82b40fe1f35b> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4:ALG-2> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-2\" .\n<ni:///sha-256;4TMvDWdC6D4iVGw9Q9Txm2uvwQA-jK68xyKfZM-oZ3s> prov:specializationOf <urn:uuid:6c3825a6-6db0-83b8-a789-82b40fe1f35b> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:f6a995eb7998247722ca11aeb538f48f 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'][2]/*[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_:b73a8650cd132bc24014a96b99792518 bridge:arrivedAs <ni:///sha-256;4TMvDWdC6D4iVGw9Q9Txm2uvwQA-jK68xyKfZM-oZ3s> ;\n\toa:hasSelector _:f6a995eb7998247722ca11aeb538f48f .\n<urn:uuid:51847bef-4d9d-8d5a-9c78-0cdadb735dfc> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4:ALG-1> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-1\" .\n<ni:///sha-256;peilLI0_-VEHUdoYXekUv8m-SkRf_AzCMx-b0-N095g> prov:specializationOf <urn:uuid:51847bef-4d9d-8d5a-9c78-0cdadb735dfc> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:d89083ab29d9bbe308d4e7c1fbef686b 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_:268670bceae96b882e3b17ce244416bc bridge:arrivedAs <ni:///sha-256;peilLI0_-VEHUdoYXekUv8m-SkRf_AzCMx-b0-N095g> ;\n\toa:hasSelector _:d89083ab29d9bbe308d4e7c1fbef686b .\n<urn:uuid:73891598-0974-8120-a1f1-f9db179bbc17> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;TBeN1QQLdjX5XKOn2oXXIylFx67Xv8eMI1klqERFpTE> prov:specializationOf <urn:uuid:73891598-0974-8120-a1f1-f9db179bbc17> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:a8e3b76c07296e464ae127373dddf95a 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]\" .\n_:2933e59901069efb6042521012c634f3 bridge:arrivedAs <ni:///sha-256;TBeN1QQLdjX5XKOn2oXXIylFx67Xv8eMI1klqERFpTE> ;\n\toa:hasSelector _:a8e3b76c07296e464ae127373dddf95a .\n_:55cf86f5977b67a62aa468e8cb05726b oa:hasSource <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasGeneratedBy _:e13087ec4dd47534c32794046f3cd2a2 .\n_:268670bceae96b882e3b17ce244416bc oa:hasSource <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasGeneratedBy _:e13087ec4dd47534c32794046f3cd2a2 .\n_:3dd46698bc9dbc059533c859940a6954 oa:hasSource <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasGeneratedBy _:e13087ec4dd47534c32794046f3cd2a2 .\n_:b73a8650cd132bc24014a96b99792518 oa:hasSource <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasGeneratedBy _:e13087ec4dd47534c32794046f3cd2a2 .\n_:2933e59901069efb6042521012c634f3 oa:hasSource <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasGeneratedBy _:e13087ec4dd47534c32794046f3cd2a2 .\n_:c9c4e38b7909e846009f9115abb7e8a9 oa:hasSource <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasGeneratedBy _:e13087ec4dd47534c32794046f3cd2a2 .\n_:8f1e2f255570ddfac29e8d7d53db102f oa:hasSource <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:wasGeneratedBy _:e13087ec4dd47534c32794046f3cd2a2 .\n<ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:c8f79752a6a94975378fb5a9f8b9c4f5 .\n_:a3548df254e3ede7dd44151aa2b233d3 prov:agent _:e61c5cc940e7385380ee8a918e87ef24 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:c8f79752a6a94975378fb5a9f8b9c4f5 prov:qualifiedAssociation _:a3548df254e3ede7dd44151aa2b233d3 .\n_:e61c5cc940e7385380ee8a918e87ef24 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:e13087ec4dd47534c32794046f3cd2a2 <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;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> a prov:Entity .\n_:e13087ec4dd47534c32794046f3cd2a2 a prov:Activity ;\n\tprov:used <ni:///sha-256;4ZfXV59727oue7Zvh7GrmwoV5o8kxWAeWnnS8c_oaQU> ;\n\tprov:qualifiedAssociation _:1879bf007b005d4a3c8f88459628d3db .\n_:1879bf007b005d4a3c8f88459628d3db prov:hadPlan _:41e8dbbaa4b8dab4be0f546cfee3e24d .\n_:41e8dbbaa4b8dab4be0f546cfee3e24d 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_:1879bf007b005d4a3c8f88459628d3db prov:agent _:d7e5fe35803f2d93c7f983fbde1b6402 .\n_:d7e5fe35803f2d93c7f983fbde1b6402 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/allergy-status-observation-beside-concern-act.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/allergy-status-observation-beside-concern-act.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_:fb351bdd5ea231b1d680a525a636fc34 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:bf56b1f63b2de2d3f3b8b6905659bb21 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:fb351bdd5ea231b1d680a525a636fc34 oa:refinedBy _:bf56b1f63b2de2d3f3b8b6905659bb21 .\n_:a65d43980e1fbe67351e58d8c0fa81f9 a oa:Annotation ;\n\toa:hasTarget _:b09eab77c4f9400e5f733543ab3d0406 .\n_:b09eab77c4f9400e5f733543ab3d0406 oa:hasSource <../in/allergy-status-observation-beside-concern-act.xml> ;\n\toa:hasSelector _:fb351bdd5ea231b1d680a525a636fc34 .\n_:a65d43980e1fbe67351e58d8c0fa81f9 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_:a6de0427679c0a38c34e706c8e9592fb a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:e9d6ee154b1b5aebcc2c2c25021bf800 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_:a6de0427679c0a38c34e706c8e9592fb oa:refinedBy _:e9d6ee154b1b5aebcc2c2c25021bf800 .\n_:bfe2e6ff2198a876998492f09f8e732b a oa:Annotation ;\n\toa:hasTarget _:d3aec371c1d6ac0f321772701f97cc05 .\n_:d3aec371c1d6ac0f321772701f97cc05 oa:hasSource <../in/allergy-status-observation-beside-concern-act.xml> ;\n\toa:hasSelector _:a6de0427679c0a38c34e706c8e9592fb .\n_:bfe2e6ff2198a876998492f09f8e732b 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\t<https://ns.cascadeprotocol.org/cascade#occurrenceCount> 4 ;\n\tsh:resultSeverity sh:Info .\n_:f18427143c8737528919ad7c290d7f8c a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a80eef8b83c31c61c13c63712e53d03d oa:hasSource <../in/allergy-status-observation-beside-concern-act.xml> .\n_:f18427143c8737528919ad7c290d7f8c oa:refinedBy _:dda604c568a4b30c298c892894be9809 .\n_:dda604c568a4b30c298c892894be9809 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'][4]/*[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_:a80eef8b83c31c61c13c63712e53d03d oa:hasSelector _:f18427143c8737528919ad7c290d7f8c .\n_:e1074cce075462804f6366c8ab6f9501 oa:hasTarget _:a80eef8b83c31c61c13c63712e53d03d ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody ccda:allergyStatusNotMapped ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"246455001\" .\n_:d4fa57cab55e5935dc7868a81e1a86bd a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a69504274e9d8a263efd1fd756fa879d oa:hasSource <../in/allergy-status-observation-beside-concern-act.xml> .\n_:d4fa57cab55e5935dc7868a81e1a86bd oa:refinedBy _:c2b14972efea54b4a292c8c508277921 .\n_:c2b14972efea54b4a292c8c508277921 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a69504274e9d8a263efd1fd756fa879d oa:hasSelector _:d4fa57cab55e5935dc7868a81e1a86bd .\n_:b85991b9e76ca6c8f51835a5bad6d1fc oa:hasTarget _:a69504274e9d8a263efd1fd756fa879d .\n_:e32291dfb2d6b6531b8a1f50494eddd a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:e389313c5cb6e0a83a5ca9f5b63a595a oa:hasSource <../in/allergy-status-observation-beside-concern-act.xml> .\n_:e32291dfb2d6b6531b8a1f50494eddd oa:refinedBy _:e6d960c80d2d46a3dd2d27b193e366e6 .\n_:e6d960c80d2d46a3dd2d27b193e366e6 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e389313c5cb6e0a83a5ca9f5b63a595a oa:hasSelector _:e32291dfb2d6b6531b8a1f50494eddd .\n_:dcf8ccd3f545d930f7f1c6c084c1813f oa:hasTarget _:e389313c5cb6e0a83a5ca9f5b63a595a .\n_:b85991b9e76ca6c8f51835a5bad6d1fc sh:resultSeverity sh:Info .\n_:dcf8ccd3f545d930f7f1c6c084c1813f sh:resultSeverity sh:Info .\n_:b85991b9e76ca6c8f51835a5bad6d1fc 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-2026-1032\" .\n_:dcf8ccd3f545d930f7f1c6c084c1813f a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n", "empty": false}}