{"name": "allergy-status-from-concern-act", "comment": "Five allergies with no Allergy Status Observation, each in a concern act of its own: active is the clinical status active, and completed, aborted and suspended are inactive, HL7's wider row for each. A status outside the map, nullified, is carried as nothing and is a finding, ccda:allergyConcernStatusNotMapped.", "input": {"file": "fixtures/in/allergy-status-from-concern-act.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/allergy-status-from-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-1031\"/>\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              <item>Sulfamethoxazole</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                </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                </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=\"aborted\"/>\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                </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=\"suspended\"/>\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                </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-5\"/>\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-5\"/>\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=\"10180\" displayName=\"sulfamethoxazole\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\"/>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\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-from-concern-act.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/allergy-status-from-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;6uK4_OE770FAepeYpuSptg6jM0lVxangV0CssdWGu20> cascade:allergyType \"allergy\" ;\n\tcascade:allergenName \"sulfamethoxazole\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/10180> .\n<ni:///sha-256;-fYKGqF-BDGN3NVU8KFtXS6mCLVrtGuWhuGS50btSqs> cascade:clinicalStatus \"inactive\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:allergenName \"ibuprofen\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/5640> .\n<ni:///sha-256;ucLsmI95MV-nvlVNpwmkZZeykRs3sCbp_wbDquQOxm8> cascade:allergyCategory \"medication\" ;\n\tcascade:clinicalStatus \"inactive\" ;\n\tcascade:allergenName \"codeine\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/2670> .\n<ni:///sha-256;utaLyq1Pnd236PoDVothxu9aauvMASS0xzlyYtwfmKA> cascade:allergenName \"penicillin G\" ;\n\tcascade:clinicalStatus \"inactive\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/7980> .\n<ni:///sha-256;rQWcvqN_Jhof9DaZRC3vTE_Sen0LCppyP55-LSMo6lw> cascade:allergenName \"aspirin\" ;\n\tcascade:clinicalStatus \"active\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergyType \"allergy\" ;\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;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> prov:wasGeneratedBy _:c72ad421f7728f4544bf40cb3fe0cfa4 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:c72ad421f7728f4544bf40cb3fe0cfa4 prov:qualifiedAssociation _:ae7d38b2badb851f75cb95968de83841 .\n_:ae7d38b2badb851f75cb95968de83841 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_:6f601065b4fc6fa724e22d65fa8729c0 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:b79d1f185b7b8fc2902d5992d1a456b1 .\n_:b79d1f185b7b8fc2902d5992d1a456b1 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;6nZ1Gilb854tCKf4ytyqsRW5sfH69bnFHS3Ze4aEy7Y> cascade:noteOrDocumentTitle \"Allergies and Adverse Reactions\" ;\n\tcascade:noteOrDocumentDate \"2026-10-31T09:30:00-05:00\"^^xsd:dateTime ;\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\\nSulfamethoxazole\" .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> foaf:givenName \"Robin\" ;\n\tfoaf:familyName \"Ahmadi\" ;\n\tcascade:dateOfBirth \"1978-02-14\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> a cascade:PatientProfile ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.2:MRN-448120> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-448120\" .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> prov:specializationOf <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:df1ec88d2333ae6bfae372022f9f9c87 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_:632106e583929a15d7427b096ed06bef bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:df1ec88d2333ae6bfae372022f9f9c87 .\n<urn:uuid:5d5916c1-d7c9-843e-a306-88a867c2d128> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4:ALG-5> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-5\" .\n<ni:///sha-256;6uK4_OE770FAepeYpuSptg6jM0lVxangV0CssdWGu20> prov:specializationOf <urn:uuid:5d5916c1-d7c9-843e-a306-88a867c2d128> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:ec7b80c929e27a69cf4ae397eafffa5b 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'][5]/*[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_:532b23f250bd641ce931f20633bea511 bridge:arrivedAs <ni:///sha-256;6uK4_OE770FAepeYpuSptg6jM0lVxangV0CssdWGu20> ;\n\toa:hasSelector _:ec7b80c929e27a69cf4ae397eafffa5b .\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;-fYKGqF-BDGN3NVU8KFtXS6mCLVrtGuWhuGS50btSqs> prov:specializationOf <urn:uuid:3a38e315-a062-82ab-bd74-595c80f639d0> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:ca42b0af4ce6f416149e704c88033e80 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_:15e8bab35f623cf4d162ba91c7bc4673 bridge:arrivedAs <ni:///sha-256;-fYKGqF-BDGN3NVU8KFtXS6mCLVrtGuWhuGS50btSqs> ;\n\toa:hasSelector _:ca42b0af4ce6f416149e704c88033e80 .\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_:e93ae1543f381d3dd95c517298a3aadb 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_:704f6131222edcb60bc5e23c1e68331 bridge:arrivedAs <ni:///sha-256;ucLsmI95MV-nvlVNpwmkZZeykRs3sCbp_wbDquQOxm8> ;\n\toa:hasSelector _:e93ae1543f381d3dd95c517298a3aadb .\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;utaLyq1Pnd236PoDVothxu9aauvMASS0xzlyYtwfmKA> prov:specializationOf <urn:uuid:6c3825a6-6db0-83b8-a789-82b40fe1f35b> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:f19d0c89adb5ec0c053c4ba5f87758dd 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_:7c23463a3b6c136804ca211876ce8c61 bridge:arrivedAs <ni:///sha-256;utaLyq1Pnd236PoDVothxu9aauvMASS0xzlyYtwfmKA> ;\n\toa:hasSelector _:f19d0c89adb5ec0c053c4ba5f87758dd .\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;rQWcvqN_Jhof9DaZRC3vTE_Sen0LCppyP55-LSMo6lw> prov:specializationOf <urn:uuid:51847bef-4d9d-8d5a-9c78-0cdadb735dfc> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:d0f4bebb1afda51d0656e80185ea2fc 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_:d0706c440985cfb4c23f658acaa657fd bridge:arrivedAs <ni:///sha-256;rQWcvqN_Jhof9DaZRC3vTE_Sen0LCppyP55-LSMo6lw> ;\n\toa:hasSelector _:d0f4bebb1afda51d0656e80185ea2fc .\n<urn:uuid:678c2974-f837-8a8a-a785-49d5d6077dd7> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;6nZ1Gilb854tCKf4ytyqsRW5sfH69bnFHS3Ze4aEy7Y> prov:specializationOf <urn:uuid:678c2974-f837-8a8a-a785-49d5d6077dd7> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:f9f949bb5d262ff846d5765c870bed18 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_:8f90dd96234e88661e84577b7a3161da bridge:arrivedAs <ni:///sha-256;6nZ1Gilb854tCKf4ytyqsRW5sfH69bnFHS3Ze4aEy7Y> ;\n\toa:hasSelector _:f9f949bb5d262ff846d5765c870bed18 .\n_:15e8bab35f623cf4d162ba91c7bc4673 oa:hasSource <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasGeneratedBy _:d49098b442befa2331c9b9caf4c59533 .\n_:d0706c440985cfb4c23f658acaa657fd oa:hasSource <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasGeneratedBy _:d49098b442befa2331c9b9caf4c59533 .\n_:6f601065b4fc6fa724e22d65fa8729c0 oa:hasSource <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasGeneratedBy _:d49098b442befa2331c9b9caf4c59533 .\n_:532b23f250bd641ce931f20633bea511 oa:hasSource <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasGeneratedBy _:d49098b442befa2331c9b9caf4c59533 .\n_:8f90dd96234e88661e84577b7a3161da oa:hasSource <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasGeneratedBy _:d49098b442befa2331c9b9caf4c59533 .\n_:7c23463a3b6c136804ca211876ce8c61 oa:hasSource <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasGeneratedBy _:d49098b442befa2331c9b9caf4c59533 .\n_:704f6131222edcb60bc5e23c1e68331 oa:hasSource <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasGeneratedBy _:d49098b442befa2331c9b9caf4c59533 .\n_:632106e583929a15d7427b096ed06bef oa:hasSource <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:wasGeneratedBy _:d49098b442befa2331c9b9caf4c59533 .\n<ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:1d26830a82accc72e63f3659ad2ad634 .\n_:11ccecf9e06911ca5864c8388b8f437d prov:agent _:2c986f3029c860bd7a25f75957abfc26 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:1d26830a82accc72e63f3659ad2ad634 prov:qualifiedAssociation _:11ccecf9e06911ca5864c8388b8f437d .\n_:2c986f3029c860bd7a25f75957abfc26 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:d49098b442befa2331c9b9caf4c59533 <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;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> a prov:Entity .\n_:d49098b442befa2331c9b9caf4c59533 a prov:Activity ;\n\tprov:used <ni:///sha-256;QgHZ-RBlBnKy92_0AxU_uTOL9HgKE1fWiMcW7RP1_T8> ;\n\tprov:qualifiedAssociation _:71e96f6d023ca470cafd03e1848cba98 .\n_:71e96f6d023ca470cafd03e1848cba98 prov:hadPlan _:11b0cd5b3932744bc95783ebc330fa1e .\n_:11b0cd5b3932744bc95783ebc330fa1e 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_:71e96f6d023ca470cafd03e1848cba98 prov:agent _:882568194d6a740c73a6110e376e4c7f .\n_:882568194d6a740c73a6110e376e4c7f 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-from-concern-act.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/allergy-status-from-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_:d06bd44373f923e73277e34a9648ec13 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:ee7dcb26efd620a4f9eaa7101981cc36 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d06bd44373f923e73277e34a9648ec13 oa:refinedBy _:ee7dcb26efd620a4f9eaa7101981cc36 .\n_:b6bd644dc2b71c834a6eaa3c53726b72 a oa:Annotation ;\n\toa:hasTarget _:ca1bcf5a6cb6c213093296838618af85 .\n_:ca1bcf5a6cb6c213093296838618af85 oa:hasSource <../in/allergy-status-from-concern-act.xml> ;\n\toa:hasSelector _:d06bd44373f923e73277e34a9648ec13 .\n_:b6bd644dc2b71c834a6eaa3c53726b72 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_:fb9a2b7430b9f29d0f36257531b92e7c a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:cd275c295d71ee9f57a1949414ab5a08 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_:fb9a2b7430b9f29d0f36257531b92e7c oa:refinedBy _:cd275c295d71ee9f57a1949414ab5a08 .\n_:deab71ecf3189725168555c30f2821f8 a oa:Annotation ;\n\toa:hasTarget _:b40b7f3d4a022b0d5037b9be585baf0c .\n_:b40b7f3d4a022b0d5037b9be585baf0c oa:hasSource <../in/allergy-status-from-concern-act.xml> ;\n\toa:hasSelector _:fb9a2b7430b9f29d0f36257531b92e7c .\n_:deab71ecf3189725168555c30f2821f8 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> 5 ;\n\tsh:resultSeverity sh:Info .\n_:f4ed4a9bf27d1b3f969cc22429a181e6 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:ac6eac7552ab43358d158a93c2f34a1e oa:hasSource <../in/allergy-status-from-concern-act.xml> .\n_:f4ed4a9bf27d1b3f969cc22429a181e6 oa:refinedBy _:bae6535d9c7e5c961fb815c8b04faba .\n_:bae6535d9c7e5c961fb815c8b04faba 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'][5]/*[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_:ac6eac7552ab43358d158a93c2f34a1e oa:hasSelector _:f4ed4a9bf27d1b3f969cc22429a181e6 .\n_:dd206ef09e8ebf103801bee0890e0375 oa:hasTarget _:ac6eac7552ab43358d158a93c2f34a1e ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody ccda:allergyConcernStatusNotMapped ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"nullified\" .\n_:cc041687d1ec2a657b2bcc592770c0f5 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:c0d76b83aeffcbdb982139e91ef27a2f oa:hasSource <../in/allergy-status-from-concern-act.xml> .\n_:cc041687d1ec2a657b2bcc592770c0f5 oa:refinedBy _:f144bdd85ec23b3b110350b2f67fee6c .\n_:f144bdd85ec23b3b110350b2f67fee6c a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:c0d76b83aeffcbdb982139e91ef27a2f oa:hasSelector _:cc041687d1ec2a657b2bcc592770c0f5 .\n_:fb19a0407899fb82e8776e4b317df460 oa:hasTarget _:c0d76b83aeffcbdb982139e91ef27a2f .\n_:d761bc34d96363fcfbd052bd3bfd2a0 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:de0197e327ab066ad66a76bb50f89fd0 oa:hasSource <../in/allergy-status-from-concern-act.xml> .\n_:d761bc34d96363fcfbd052bd3bfd2a0 oa:refinedBy _:a10c842cf0eb8c115ced022fa54a4ae6 .\n_:a10c842cf0eb8c115ced022fa54a4ae6 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:de0197e327ab066ad66a76bb50f89fd0 oa:hasSelector _:d761bc34d96363fcfbd052bd3bfd2a0 .\n_:f51dbfde3e1aea345d1aec4b5798a446 oa:hasTarget _:de0197e327ab066ad66a76bb50f89fd0 .\n_:fb19a0407899fb82e8776e4b317df460 sh:resultSeverity sh:Info .\n_:f51dbfde3e1aea345d1aec4b5798a446 sh:resultSeverity sh:Info .\n_:fb19a0407899fb82e8776e4b317df460 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-1031\" .\n_:f51dbfde3e1aea345d1aec4b5798a446 a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n", "empty": false}}