{"name": "procedures-same-cpt-a-year-apart", "comment": "Two procedures coded with the one CPT code 36415 a year apart: each is its own record, carrying cascade:procedureCode, the CPT code's IRI.", "input": {"file": "fixtures/in/procedures-same-cpt-a-year-apart.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/procedures-same-cpt-a-year-apart.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\">\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-1115-S\"/>\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=\"20261115090000-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-552013\"/>\n      <patient>\n        <name use=\"L\">\n          <given>Ada</given>\n          <family>Okonjo</family>\n        </name>\n        <administrativeGenderCode code=\"F\" codeSystem=\"2.16.840.1.113883.5.1\"/>\n        <birthTime value=\"19480302\"/>\n      </patient>\n    </patientRole>\n  </recordTarget>\n  <author>\n    <time value=\"20261115090000-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.7.1\" extension=\"2015-08-01\"/>\n          <code code=\"47519-4\" displayName=\"History of Procedures Document\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Procedures</title>\n          <entry typeCode=\"DRIV\">\n            <procedure classCode=\"PROC\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.14\" extension=\"2014-06-09\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"PROC-3001\"/>\n              <code code=\"36415\" displayName=\"Collection of venous blood by venipuncture\" codeSystem=\"2.16.840.1.113883.6.12\" codeSystemName=\"CPT\"/>\n              <statusCode code=\"completed\"/>\n              <effectiveTime value=\"20240214\"/>\n            </procedure>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <procedure classCode=\"PROC\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.14\" extension=\"2014-06-09\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"PROC-3002\"/>\n              <code code=\"36415\" displayName=\"Collection of venous blood by venipuncture\" codeSystem=\"2.16.840.1.113883.6.12\" codeSystemName=\"CPT\"/>\n              <statusCode code=\"completed\"/>\n              <effectiveTime value=\"20250214\"/>\n            </procedure>\n          </entry>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/procedures-same-cpt-a-year-apart.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/procedures-same-cpt-a-year-apart.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<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> prov:wasGeneratedBy _:c109280363d88f24f32d91868d632e85 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:c109280363d88f24f32d91868d632e85 prov:qualifiedAssociation _:c39a95674f59b15a9f6868b57d0a9531 .\n_:c39a95674f59b15a9f6868b57d0a9531 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_:639d195fb8218ec183bbbdd300fa1fa7 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:c37ff88d60e3a239dc5e6a9d9e5b2069 .\n_:c37ff88d60e3a239dc5e6a9d9e5b2069 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;9L3h4NNRVCOQAy2VMhF669-ufq4uFRyBucFss_lygkA> foaf:familyName \"Okonjo\" ;\n\tfoaf:givenName \"Ada\" ;\n\tcascade:dateOfBirth \"1948-03-02\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<ni:///sha-256;KpYL-hvjUB3SyfHex4NnAqoB4DRxeymVrsWPkOjNiY0> cascade:workflowStatus \"completed\" ;\n\tcascade:procedureDate \"2025-02-14\"^^xsd:date ;\n\tcascade:procedureName \"Collection of venous blood by venipuncture\" ;\n\tcascade:procedureCode <https://ns.cascadeprotocol.org/codes/cpt/36415> .\n<ni:///sha-256;G3277_6Sh8vTL5WRZOCn5blmJpvy_GNKHvA_YaEwVrM> cascade:procedureName \"Collection of venous blood by venipuncture\" ;\n\tcascade:workflowStatus \"completed\" ;\n\tcascade:procedureDate \"2024-02-14\"^^xsd:date ;\n\tcascade:procedureCode <https://ns.cascadeprotocol.org/codes/cpt/36415> .\n<urn:uuid:9b162b30-81b1-8285-bd88-0e6c6c288264> a cascade:PatientProfile ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.2:MRN-552013> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-552013\" .\n<ni:///sha-256;9L3h4NNRVCOQAy2VMhF669-ufq4uFRyBucFss_lygkA> prov:specializationOf <urn:uuid:9b162b30-81b1-8285-bd88-0e6c6c288264> .\n_:e2adfe21c3713fa0ef573f40f03f186d 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_:934777269f798fca8ec1eef5b623ebe bridge:arrivedAs <ni:///sha-256;9L3h4NNRVCOQAy2VMhF669-ufq4uFRyBucFss_lygkA> ;\n\toa:hasSelector _:e2adfe21c3713fa0ef573f40f03f186d .\n<urn:uuid:25f9ccdd-4213-8faa-b701-bd06521f443f> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.5:PROC-3002> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.5:PROC-3002\" .\n<ni:///sha-256;KpYL-hvjUB3SyfHex4NnAqoB4DRxeymVrsWPkOjNiY0> prov:specializationOf <urn:uuid:25f9ccdd-4213-8faa-b701-bd06521f443f> ;\n\tcascade:patient <urn:uuid:9b162b30-81b1-8285-bd88-0e6c6c288264> .\n_:f8f3644c3d9a307cded1c64e56097113 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()='procedure' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:5dede7b2d65955661c02dcda953b710b bridge:arrivedAs <ni:///sha-256;KpYL-hvjUB3SyfHex4NnAqoB4DRxeymVrsWPkOjNiY0> ;\n\toa:hasSelector _:f8f3644c3d9a307cded1c64e56097113 .\n<urn:uuid:285de8d7-729c-8830-b738-f3fb685a6ef6> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.5:PROC-3001> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.5:PROC-3001\" .\n<ni:///sha-256;G3277_6Sh8vTL5WRZOCn5blmJpvy_GNKHvA_YaEwVrM> prov:specializationOf <urn:uuid:285de8d7-729c-8830-b738-f3fb685a6ef6> ;\n\tcascade:patient <urn:uuid:9b162b30-81b1-8285-bd88-0e6c6c288264> .\n_:c824d5600d4cfd9dcdd94dd3599a6192 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()='procedure' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:37cd9a608346dbfd01372dc6248db76e bridge:arrivedAs <ni:///sha-256;G3277_6Sh8vTL5WRZOCn5blmJpvy_GNKHvA_YaEwVrM> ;\n\toa:hasSelector _:c824d5600d4cfd9dcdd94dd3599a6192 .\n_:5dede7b2d65955661c02dcda953b710b oa:hasSource <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:wasGeneratedBy _:68f3c14e9fc8a08d92cc44824a71c135 .\n_:37cd9a608346dbfd01372dc6248db76e oa:hasSource <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:wasGeneratedBy _:68f3c14e9fc8a08d92cc44824a71c135 .\n_:639d195fb8218ec183bbbdd300fa1fa7 oa:hasSource <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:wasGeneratedBy _:68f3c14e9fc8a08d92cc44824a71c135 .\n_:934777269f798fca8ec1eef5b623ebe oa:hasSource <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:wasGeneratedBy _:68f3c14e9fc8a08d92cc44824a71c135 .\n<ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:444c5a55d481db7c71adacfb54c8f03 .\n_:d8eeb87e2e3390042c6c3bcfe947c811 prov:agent _:c126e8c813963f226f31952394c057dc ;\n\tprov:hadRole cascade:TransmitterRole .\n_:444c5a55d481db7c71adacfb54c8f03 prov:qualifiedAssociation _:d8eeb87e2e3390042c6c3bcfe947c811 .\n_:c126e8c813963f226f31952394c057dc <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:68f3c14e9fc8a08d92cc44824a71c135 <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;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> a prov:Entity .\n_:68f3c14e9fc8a08d92cc44824a71c135 a prov:Activity ;\n\tprov:used <ni:///sha-256;kWsNabkUrKaozFWT-N9zxHGd2Fwmfc5YCZ-jPcK-RfY> ;\n\tprov:qualifiedAssociation _:a1625073aeae497cc3f30dc5fe3e6ecb .\n_:a1625073aeae497cc3f30dc5fe3e6ecb prov:hadPlan _:3699cd20b3ae862ea51721e3bceedba .\n_:3699cd20b3ae862ea51721e3bceedba 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_:a1625073aeae497cc3f30dc5fe3e6ecb prov:agent _:b507c5c7698fb6bcebe5cef27e49306b .\n_:b507c5c7698fb6bcebe5cef27e49306b 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/procedures-same-cpt-a-year-apart.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/procedures-same-cpt-a-year-apart.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_:da03aa59be132eaad3773d1241567cd5 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f2ab39ac9b8deede1d8ad6fd1b97ece2 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:da03aa59be132eaad3773d1241567cd5 oa:refinedBy _:f2ab39ac9b8deede1d8ad6fd1b97ece2 .\n_:e40221abd079ce8fd528f70ab8733a98 a oa:Annotation ;\n\toa:hasTarget _:c2a22e3982aabb8fd553424a5f3d171a .\n_:c2a22e3982aabb8fd553424a5f3d171a oa:hasSource <../in/procedures-same-cpt-a-year-apart.xml> ;\n\toa:hasSelector _:da03aa59be132eaad3773d1241567cd5 .\n_:e40221abd079ce8fd528f70ab8733a98 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_:f885e6316fd8e8eed0849298473d66a9 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:ed1a6dd2856583147eb9d3a71e96d881 oa:hasSource <../in/procedures-same-cpt-a-year-apart.xml> .\n_:f885e6316fd8e8eed0849298473d66a9 oa:refinedBy _:cd821e6779221d1fad4c18cc0ac3e639 .\n_:cd821e6779221d1fad4c18cc0ac3e639 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ed1a6dd2856583147eb9d3a71e96d881 oa:hasSelector _:f885e6316fd8e8eed0849298473d66a9 .\n_:eee5d36c7ad3cf3f60af651c16526037 oa:hasTarget _:ed1a6dd2856583147eb9d3a71e96d881 .\n_:af9145adc1059d3e77e151e75d9f26fb a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a28bc882bfc6f0fd50af8b1b07bbd0ae oa:hasSource <../in/procedures-same-cpt-a-year-apart.xml> .\n_:af9145adc1059d3e77e151e75d9f26fb oa:refinedBy _:fd6baafc3b264d94e3628a3f2b892b3f .\n_:fd6baafc3b264d94e3628a3f2b892b3f a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a28bc882bfc6f0fd50af8b1b07bbd0ae oa:hasSelector _:af9145adc1059d3e77e151e75d9f26fb .\n_:f23c336f9f762ea9b320dd5c24c54039 oa:hasTarget _:a28bc882bfc6f0fd50af8b1b07bbd0ae .\n_:afef805f90abd6a1f46ff098329882ee a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:e153f629886b7309767c2128bcf27330 oa:hasSource <../in/procedures-same-cpt-a-year-apart.xml> .\n_:afef805f90abd6a1f46ff098329882ee oa:refinedBy _:cb368f001519efcfb3b7b6a76efbc23f .\n_:cb368f001519efcfb3b7b6a76efbc23f a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e153f629886b7309767c2128bcf27330 oa:hasSelector _:afef805f90abd6a1f46ff098329882ee .\n_:ab6fb70cf19a427e9c3948c25c9a76d4 oa:hasTarget _:e153f629886b7309767c2128bcf27330 .\n_:eee5d36c7ad3cf3f60af651c16526037 sh:resultSeverity sh:Info .\n_:f23c336f9f762ea9b320dd5c24c54039 sh:resultSeverity sh:Info .\n_:ab6fb70cf19a427e9c3948c25c9a76d4 sh:resultSeverity sh:Info .\n_:eee5d36c7ad3cf3f60af651c16526037 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-1115-S\" .\n_:f23c336f9f762ea9b320dd5c24c54039 a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:ab6fb70cf19a427e9c3948c25c9a76d4 a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"20261115090000-0500\" .\n", "empty": false}}