{"name": "medication-written-date", "comment": "Two prescriptions whose author states the time the prescription was written: one to the day and one to the minute with an offset. The day is cascade:prescriptionWrittenDate as an xsd:date, and the minute is that property as an xsd:dateTime padded to the second beside a node keeping the characters written. A third prescription's author time is a nullFlavor, an absent prescriptionWrittenDate. A listed medication's author time, the day its entry was recorded, is a finding and no prescriptionWrittenDate.", "input": {"file": "fixtures/in/medication-written-date.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/medication-written-date.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-1020\"/>\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=\"20261020101500-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\" displayName=\"Female\"/>\n        <birthTime value=\"19780214\"/>\n      </patient>\n    </patientRole>\n  </recordTarget>\n  <author>\n    <time value=\"20261020101500-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      </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.1.1\" extension=\"2014-06-09\"/>\n          <code code=\"10160-0\" displayName=\"History of Medication use Narrative\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Medications</title>\n          <text>sertraline 25 mg tablet; sertraline 50 mg tablet</text>\n          <entry typeCode=\"DRIV\">\n            <substanceAdministration classCode=\"SBADM\" moodCode=\"INT\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.16\" extension=\"2014-06-09\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"MED-7001\"/>\n              <statusCode code=\"completed\"/>\n              <effectiveTime xsi:type=\"IVL_TS\">\n                <low value=\"20260916\"/>\n              </effectiveTime>\n              <consumable>\n                <manufacturedProduct classCode=\"MANU\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.23\" extension=\"2014-06-09\"/>\n                  <manufacturedMaterial>\n                    <code code=\"RHC-2501\" displayName=\"Sertraline 25 mg tablet (formulary)\" codeSystem=\"2.16.840.1.113883.19.5.99999.9\" codeSystemName=\"Riverside Formulary\">\n                      <originalText>sertraline 25 mg tablet</originalText>\n                    </code>\n                  </manufacturedMaterial>\n                </manufacturedProduct>\n              </consumable>\n              <author>\n                <time value=\"20260916\"/>\n                <assignedAuthor>\n                  <id root=\"2.16.840.1.113883.4.6\" extension=\"9990000017\"/>\n                </assignedAuthor>\n              </author>\n            </substanceAdministration>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <substanceAdministration classCode=\"SBADM\" moodCode=\"INT\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.16\" extension=\"2014-06-09\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"MED-7002\"/>\n              <statusCode code=\"active\"/>\n              <effectiveTime xsi:type=\"IVL_TS\">\n                <low value=\"20261014\"/>\n              </effectiveTime>\n              <consumable>\n                <manufacturedProduct classCode=\"MANU\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.23\" extension=\"2014-06-09\"/>\n                  <manufacturedMaterial>\n                    <code code=\"RHC-2502\" displayName=\"Sertraline 50 mg tablet (formulary)\" codeSystem=\"2.16.840.1.113883.19.5.99999.9\" codeSystemName=\"Riverside Formulary\">\n                      <originalText>sertraline 50 mg tablet</originalText>\n                    </code>\n                  </manufacturedMaterial>\n                </manufacturedProduct>\n              </consumable>\n              <author>\n                <time value=\"202610141530-0500\"/>\n                <assignedAuthor>\n                  <id root=\"2.16.840.1.113883.4.6\" extension=\"9990000017\"/>\n                </assignedAuthor>\n              </author>\n            </substanceAdministration>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.16\" extension=\"2014-06-09\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"MED-7003\"/>\n              <statusCode code=\"active\"/>\n              <effectiveTime xsi:type=\"IVL_TS\">\n                <low value=\"20260801\"/>\n              </effectiveTime>\n              <consumable>\n                <manufacturedProduct classCode=\"MANU\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.23\" extension=\"2014-06-09\"/>\n                  <manufacturedMaterial>\n                    <code code=\"RHC-2503\" displayName=\"Melatonin 3 mg tablet (formulary)\" codeSystem=\"2.16.840.1.113883.19.5.99999.9\" codeSystemName=\"Riverside Formulary\">\n                      <originalText>melatonin 3 mg tablet</originalText>\n                    </code>\n                  </manufacturedMaterial>\n                </manufacturedProduct>\n              </consumable>\n              <author>\n                <time value=\"20261020\"/>\n                <assignedAuthor>\n                  <id root=\"2.16.840.1.113883.4.6\" extension=\"9990000017\"/>\n                </assignedAuthor>\n              </author>\n            </substanceAdministration>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <substanceAdministration classCode=\"SBADM\" moodCode=\"INT\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.16\" extension=\"2014-06-09\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"MED-7004\"/>\n              <statusCode code=\"active\"/>\n              <effectiveTime xsi:type=\"IVL_TS\">\n                <low value=\"20261015\"/>\n              </effectiveTime>\n              <consumable>\n                <manufacturedProduct classCode=\"MANU\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.23\" extension=\"2014-06-09\"/>\n                  <manufacturedMaterial>\n                    <code code=\"RHC-2504\" displayName=\"Trazodone 50 mg tablet (formulary)\" codeSystem=\"2.16.840.1.113883.19.5.99999.9\" codeSystemName=\"Riverside Formulary\">\n                      <originalText>trazodone 50 mg tablet</originalText>\n                    </code>\n                  </manufacturedMaterial>\n                </manufacturedProduct>\n              </consumable>\n              <author>\n                <time nullFlavor=\"UNK\"/>\n                <assignedAuthor>\n                  <id root=\"2.16.840.1.113883.4.6\" extension=\"9990000017\"/>\n                </assignedAuthor>\n              </author>\n            </substanceAdministration>\n          </entry>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/medication-written-date.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/medication-written-date.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_:c55248ecde61a4cc8f0c21a5ad906525 rdf: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\ta oa:XPathSelector .\n_:150d2a78cd2ccc772fdf6d7cd7a4b81a oa:hasSelector _:c55248ecde61a4cc8f0c21a5ad906525 ;\n\tbridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> .\n<ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> prov:specializationOf <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> org:identifier \"urn:oid:2.16.840.1.113883.19.5.99999.3\"^^<urn:ietf:rfc:3986> .\n_:a0fc1750015d82d360e4f3964de2041e prov:hadRole cascade:CustodianRole ;\n\tprov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:d3f29d3d32510c00517526f9da1e5d7e prov:qualifiedAssociation _:a0fc1750015d82d360e4f3964de2041e .\n<ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> prov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> ;\n\tprov:wasGeneratedBy _:d3f29d3d32510c00517526f9da1e5d7e .\n<ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> foaf:name \"Riverside Community Hospital\" .\n_:f31a4cd423258cdf0d09c3ac81b93095 prov:hadRole cascade:AuthorRole ;\n\tprov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:d11176f5e3c0dac504101e0dd1877112 prov:qualifiedAssociation _:f31a4cd423258cdf0d09c3ac81b93095 .\n<ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> prov:wasGeneratedBy _:d11176f5e3c0dac504101e0dd1877112 .\n<ni:///sha-256;RJ59zgm1XWfoXYAsmAzxpqgfZDux1qNGlBUZ3pZOdEw> cascade:prescriptionWrittenDate \"2026-09-16\"^^xsd:date .\n<ni:///sha-256;39BGHHZJ_sLOZltgu7GCASy1wZqkniTUGxqY_t1d4q4> cascade:workflowStatus \"active\" .\n<ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4> cascade:drugName \"sertraline 50 mg tablet\" ;\n\tcascade:medicationUseStartDate \"2026-10-14\"^^xsd:date .\n<ni:///sha-256;ctVPHmXlrywqkG6e2MF31kj9jmdh9TrUlHINzAkOOEk> cascade:medicationUseStartDate \"2026-10-15\"^^xsd:date ;\n\tcascade:drugName \"trazodone 50 mg tablet\" .\n<ni:///sha-256;RJ59zgm1XWfoXYAsmAzxpqgfZDux1qNGlBUZ3pZOdEw> cascade:workflowStatus \"completed\" .\n<ni:///sha-256;39BGHHZJ_sLOZltgu7GCASy1wZqkniTUGxqY_t1d4q4> cascade:drugName \"melatonin 3 mg tablet\" ;\n\tcascade:medicationUseStartDate \"2026-08-01\"^^xsd:date .\n<ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4#padded-prescriptionWrittenDate> cascade:timeAsWritten \"202610141530-0500\" ;\n\tcascade:paddedDateTimeProperty cascade:prescriptionWrittenDate .\n<ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4> cascade:paddedDateTime <ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4#padded-prescriptionWrittenDate> ;\n\tcascade:prescriptionWrittenDate \"2026-10-14T15:30:00-05:00\"^^xsd:dateTime .\n<ni:///sha-256;ctVPHmXlrywqkG6e2MF31kj9jmdh9TrUlHINzAkOOEk#absent-prescriptionWrittenDate> cascade:absentReasonCode <https://ns.cascadeprotocol.org/codes/nullflavor/UNK> ;\n\tcascade:absentValueProperty cascade:prescriptionWrittenDate .\n<ni:///sha-256;ctVPHmXlrywqkG6e2MF31kj9jmdh9TrUlHINzAkOOEk> cascade:valueAbsentForReason <ni:///sha-256;ctVPHmXlrywqkG6e2MF31kj9jmdh9TrUlHINzAkOOEk#absent-prescriptionWrittenDate> .\n<ni:///sha-256;RJ59zgm1XWfoXYAsmAzxpqgfZDux1qNGlBUZ3pZOdEw> cascade:drugName \"sertraline 25 mg tablet\" ;\n\tcascade:medicationUseStartDate \"2026-09-16\"^^xsd:date .\n<ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4> cascade:workflowStatus \"active\" .\n<ni:///sha-256;ctVPHmXlrywqkG6e2MF31kj9jmdh9TrUlHINzAkOOEk> cascade:workflowStatus \"active\" ;\n\tcascade:prescribedOrReported \"prescribed\" .\n<ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4> cascade:prescribedOrReported \"prescribed\" .\n<ni:///sha-256;RJ59zgm1XWfoXYAsmAzxpqgfZDux1qNGlBUZ3pZOdEw> cascade:prescribedOrReported \"prescribed\" .\n<ni:///sha-256;39BGHHZJ_sLOZltgu7GCASy1wZqkniTUGxqY_t1d4q4> cascade:prescribedOrReported \"reportedUse\" .\n<ni:///sha-256;ctVPHmXlrywqkG6e2MF31kj9jmdh9TrUlHINzAkOOEk> cascade:medicationCodeInOtherSystem \"RHC-2504\"^^<urn:oid:2.16.840.1.113883.19.5.99999.9> .\n<ni:///sha-256;39BGHHZJ_sLOZltgu7GCASy1wZqkniTUGxqY_t1d4q4> cascade:medicationCodeInOtherSystem \"RHC-2503\"^^<urn:oid:2.16.840.1.113883.19.5.99999.9> .\n<ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4> cascade:medicationCodeInOtherSystem \"RHC-2502\"^^<urn:oid:2.16.840.1.113883.19.5.99999.9> .\n<ni:///sha-256;RJ59zgm1XWfoXYAsmAzxpqgfZDux1qNGlBUZ3pZOdEw> cascade:medicationCodeInOtherSystem \"RHC-2501\"^^<urn:oid:2.16.840.1.113883.19.5.99999.9> .\n<ni:///sha-256;evrj-9_InvKz5huT8vT-sIYgfCcZ8r1hNhqbf8ng87c> cascade:noteOrDocumentTypeCode <http://loinc.org/rdf/10160-0> ;\n\tcascade:noteOrDocumentDate \"2026-10-20T10:15:00-05:00\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTitle \"Medications\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeName \"History of Medication use Narrative\" ;\n\tcascade:narrativeText \"sertraline 25 mg tablet; sertraline 50 mg tablet\" .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> foaf:familyName \"Ahmadi\" ;\n\tfoaf:givenName \"Robin\" ;\n\tcascade:administrativeGender \"female\" ;\n\tcascade:dateOfBirth \"1978-02-14\"^^xsd:date .\n_:bfedaf6d590b26566c899ddb076a9f40 oa:hasSelector _:c79bed8ff75ac7b76d29eb64bf777b31 ;\n\tbridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> .\n_:c79bed8ff75ac7b76d29eb64bf777b31 rdf: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\ta oa:XPathSelector .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> prov:specializationOf <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n<urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> cascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-448120\" ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.2:MRN-448120> ;\n\ta cascade:PatientProfile .\n_:a65a08ac77f487076acdab042a82b7d6 oa:hasSelector _:bc41aba7c8284fa190282a39fa37b1f9 ;\n\tbridge:arrivedAs <ni:///sha-256;ctVPHmXlrywqkG6e2MF31kj9jmdh9TrUlHINzAkOOEk> .\n_:bc41aba7c8284fa190282a39fa37b1f9 rdf: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()='substanceAdministration' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n<ni:///sha-256;ctVPHmXlrywqkG6e2MF31kj9jmdh9TrUlHINzAkOOEk> cascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> ;\n\tprov:specializationOf <urn:uuid:b7758b96-7e4c-8574-a4c0-07deb2d70246> .\n<urn:uuid:b7758b96-7e4c-8574-a4c0-07deb2d70246> cascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.5:MED-7004\" ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.5:MED-7004> ;\n\ta cascade:PrescribedOrReportedMedication .\n_:63a8d026adcd1461e3d0643aab459544 oa:hasSelector _:fbabf6dcb9ddfd08c094ff10266773fd ;\n\tbridge:arrivedAs <ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4> .\n_:fbabf6dcb9ddfd08c094ff10266773fd rdf: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()='substanceAdministration' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n<ni:///sha-256;cHwaWmICInhI7qzOEBX37HXDwSaebQzPtQa6mGx5gb4> cascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> ;\n\tprov:specializationOf <urn:uuid:a444eb1d-3ac5-8fb1-a9bf-241fd72473c1> .\n<urn:uuid:a444eb1d-3ac5-8fb1-a9bf-241fd72473c1> cascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.5:MED-7002\" ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.5:MED-7002> ;\n\ta cascade:PrescribedOrReportedMedication .\n_:d36a451cd3ea5b8043f0f3b9b5a12a3f oa:hasSelector _:ced60f081082c091b1a43920314abc66 ;\n\tbridge:arrivedAs <ni:///sha-256;RJ59zgm1XWfoXYAsmAzxpqgfZDux1qNGlBUZ3pZOdEw> .\n_:ced60f081082c091b1a43920314abc66 rdf: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()='substanceAdministration' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n<ni:///sha-256;RJ59zgm1XWfoXYAsmAzxpqgfZDux1qNGlBUZ3pZOdEw> cascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> ;\n\tprov:specializationOf <urn:uuid:cca41ae4-196c-884f-85b5-40638ff3b6c3> .\n<urn:uuid:cca41ae4-196c-884f-85b5-40638ff3b6c3> cascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.5:MED-7001\" ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.5:MED-7001> ;\n\ta cascade:PrescribedOrReportedMedication .\n_:b04f19ead41e74640ebfd067aa846277 oa:hasSelector _:ee416231f38a8830126d8398443eb35 ;\n\tbridge:arrivedAs <ni:///sha-256;39BGHHZJ_sLOZltgu7GCASy1wZqkniTUGxqY_t1d4q4> .\n_:ee416231f38a8830126d8398443eb35 rdf: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()='substanceAdministration' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n<ni:///sha-256;39BGHHZJ_sLOZltgu7GCASy1wZqkniTUGxqY_t1d4q4> cascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> ;\n\tprov:specializationOf <urn:uuid:0d450e85-e39a-8b10-b561-8a88f0967b93> .\n<urn:uuid:0d450e85-e39a-8b10-b561-8a88f0967b93> cascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.5:MED-7003\" ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.5:MED-7003> ;\n\ta cascade:PrescribedOrReportedMedication .\n_:634811f5560023e6e4bbcd29ae0a769c oa:hasSelector _:bf7561e8fefebc2ad689c7bbab3e42ef ;\n\tbridge:arrivedAs <ni:///sha-256;evrj-9_InvKz5huT8vT-sIYgfCcZ8r1hNhqbf8ng87c> .\n_:bf7561e8fefebc2ad689c7bbab3e42ef rdf: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\ta oa:XPathSelector .\n<ni:///sha-256;evrj-9_InvKz5huT8vT-sIYgfCcZ8r1hNhqbf8ng87c> cascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> ;\n\tprov:specializationOf <urn:uuid:359e376d-b809-8f51-816e-69430df6a38a> .\n<urn:uuid:359e376d-b809-8f51-816e-69430df6a38a> a cascade:ClinicalNoteOrDocument .\n_:b04f19ead41e74640ebfd067aa846277 oa:hasSource <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasGeneratedBy _:d2126765ad933ac566045893abe002f5 .\n_:634811f5560023e6e4bbcd29ae0a769c oa:hasSource <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasGeneratedBy _:d2126765ad933ac566045893abe002f5 .\n_:150d2a78cd2ccc772fdf6d7cd7a4b81a oa:hasSource <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasGeneratedBy _:d2126765ad933ac566045893abe002f5 .\n_:63a8d026adcd1461e3d0643aab459544 oa:hasSource <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasGeneratedBy _:d2126765ad933ac566045893abe002f5 .\n_:a65a08ac77f487076acdab042a82b7d6 oa:hasSource <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasGeneratedBy _:d2126765ad933ac566045893abe002f5 .\n_:d36a451cd3ea5b8043f0f3b9b5a12a3f oa:hasSource <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasGeneratedBy _:d2126765ad933ac566045893abe002f5 .\n_:bfedaf6d590b26566c899ddb076a9f40 oa:hasSource <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:wasGeneratedBy _:d2126765ad933ac566045893abe002f5 .\n<ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:27e01248a7d28832fd20b1652bfe4380 .\n_:ad6bb09ee43a9f4081f21fdb2ca0a1a0 prov:agent _:f0fc0dfb0b46212394e72ea170ab2f42 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:27e01248a7d28832fd20b1652bfe4380 prov:qualifiedAssociation _:ad6bb09ee43a9f4081f21fdb2ca0a1a0 .\n_:f0fc0dfb0b46212394e72ea170ab2f42 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:d2126765ad933ac566045893abe002f5 <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;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> a prov:Entity .\n_:d2126765ad933ac566045893abe002f5 a prov:Activity ;\n\tprov:used <ni:///sha-256;MH7n--2HXVdQ_Nox4MnoK56HMS0kbRIAZBSDZ3nlFRQ> ;\n\tprov:qualifiedAssociation _:ada4e9831ef49104a369885d68062164 .\n_:ada4e9831ef49104a369885d68062164 prov:hadPlan _:3272005e5d596a566021cd09cd41ada1 .\n_:3272005e5d596a566021cd09cd41ada1 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_:ada4e9831ef49104a369885d68062164 prov:agent _:a72b1756e9d4cff35e963ba84b65ade4 .\n_:a72b1756e9d4cff35e963ba84b65ade4 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/medication-written-date.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/medication-written-date.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_:d63ccbeb674679c91ebef84c1f695735 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b52694177b9cadf52da5fa39dc235ae2 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d63ccbeb674679c91ebef84c1f695735 oa:refinedBy _:b52694177b9cadf52da5fa39dc235ae2 .\n_:e46bb327f9888e178412bf82bf45acfa a oa:Annotation ;\n\toa:hasTarget _:af1ce1e93253dc59e015f714fcc416bf .\n_:af1ce1e93253dc59e015f714fcc416bf oa:hasSource <../in/medication-written-date.xml> ;\n\toa:hasSelector _:d63ccbeb674679c91ebef84c1f695735 .\n_:e46bb327f9888e178412bf82bf45acfa 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_:be5ee4020f39dd312ddafb569eb158e5 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b549b3be2d3e55d82d7442ff9c8d1cf 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()='substanceAdministration' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='assignedAuthor' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:be5ee4020f39dd312ddafb569eb158e5 oa:refinedBy _:b549b3be2d3e55d82d7442ff9c8d1cf .\n_:c9f129e70714bdd41eabe0d1d97c2583 a oa:Annotation ;\n\toa:hasTarget _:c9104aa197ca602d36715e52bc7ea8bd .\n_:c9104aa197ca602d36715e52bc7ea8bd oa:hasSource <../in/medication-written-date.xml> ;\n\toa:hasSelector _:be5ee4020f39dd312ddafb569eb158e5 .\n_:c9f129e70714bdd41eabe0d1d97c2583 oa:hasBody ccda:medicationAuthor ;\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()='substanceAdministration' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='author' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='assignedAuthor' and namespace-uri()='urn:hl7-org:v3']\" ;\n\t<https://ns.cascadeprotocol.org/cascade#occurrenceCount> 4 ;\n\tsh:resultSeverity sh:Info .\n_:f33e72b4877da5a56c5d2bf2c2996338 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" ;\n\toa:refinedBy _:c61a6f0be145d418976aba6e52dd1b4d .\n_:c189b7e0c280f8d717ba62003db33265 oa:hasSource <../in/medication-written-date.xml> .\n_:c61a6f0be145d418976aba6e52dd1b4d rdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n_:c189b7e0c280f8d717ba62003db33265 oa:hasSelector _:f33e72b4877da5a56c5d2bf2c2996338 .\n_:c2e4a8728b620b58895dbd571fcdb3d4 oa:hasTarget _:c189b7e0c280f8d717ba62003db33265 .\n_:c6222b225b3928937152851f8a3dc7fb a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" ;\n\toa:refinedBy _:de4f0a831d6ab67e8f0198b769ef7fe6 .\n_:ab6494c89593fd3ca909cb4762eca690 oa:hasSource <../in/medication-written-date.xml> .\n_:de4f0a831d6ab67e8f0198b769ef7fe6 rdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n_:ab6494c89593fd3ca909cb4762eca690 oa:hasSelector _:c6222b225b3928937152851f8a3dc7fb .\n_:b83074c095aa5918626e5fbb18ad496f oa:hasTarget _:ab6494c89593fd3ca909cb4762eca690 .\n_:c2e4a8728b620b58895dbd571fcdb3d4 sh:resultSeverity sh:Info .\n_:b83074c095aa5918626e5fbb18ad496f sh:resultSeverity sh:Info .\n_:c2e4a8728b620b58895dbd571fcdb3d4 sh:value \"2.16.840.1.113883.19.5.99999.1|CCD-2026-1020\" ;\n\toa:motivatedBy oa:classifying ;\n\toa:hasBody ccda:documentId ;\n\ta oa:Annotation .\n_:b83074c095aa5918626e5fbb18ad496f sh:value \"34133-9\" ;\n\toa:motivatedBy oa:classifying ;\n\toa:hasBody ccda:documentType ;\n\ta oa:Annotation .\n_:bf73463bb245af5edc6c98cf0c5dda01 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" ;\n\toa:refinedBy _:c70e3b77d02200e6cf6bd350e41a4923 .\n_:f04abd716758def97b91faa273c3defd oa:hasSource <../in/medication-written-date.xml> .\n_:c70e3b77d02200e6cf6bd350e41a4923 rdf: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'][3]/*[local-name()='substanceAdministration' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n_:f04abd716758def97b91faa273c3defd oa:hasSelector _:bf73463bb245af5edc6c98cf0c5dda01 .\n_:ae1c0de7ea554af0b93eff95c1874f12 oa:hasTarget _:f04abd716758def97b91faa273c3defd ;\n\tsh:resultSeverity sh:Info ;\n\tsh:value \"20261020\" ;\n\toa:motivatedBy oa:classifying ;\n\toa:hasBody ccda:listedMedicationAuthorTime ;\n\ta oa:Annotation .\n", "empty": false}}