{"name": "medication-dispense-prescription-without-server", "comment": "A MedicationDispense in a document from no known server, whose prescription is a reference relative to a server: it names no record, since a relative reference means nothing without its server, and is a finding.", "input": {"file": "fixtures/in/medication-dispense-prescription-without-server.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/medication-dispense-prescription-without-server.json", "text": "{\n  \"resourceType\": \"MedicationDispense\",\n  \"id\": \"meddisp-noserver-1\",\n  \"status\": \"completed\",\n  \"medicationCodeableConcept\": {\n    \"text\": \"Metformin 500 mg tablet\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"authorizingPrescription\": [\n    {\n      \"reference\": \"MedicationRequest/medrx-metformin-1\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/medication-dispense-prescription-without-server.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/medication-dispense-prescription-without-server.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 prov: <http://www.w3.org/ns/prov#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix dcterms: <http://purl.org/dc/terms/> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n@prefix pav: <http://purl.org/pav/> .\n<ni:///sha-256;ctYWRBnT5N3liymcP4m8N4lMe9EQanKPRcLrnQ9vu50> cascade:drugName \"Metformin 500 mg tablet\" ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:3c131eee-b053-89a3-b70d-99c915be8b92> a cascade:MedicationDispense ;\n\tcascade:sourceRecordId \"meddisp-noserver-1\" .\n<ni:///sha-256;ctYWRBnT5N3liymcP4m8N4lMe9EQanKPRcLrnQ9vu50> prov:specializationOf <urn:uuid:3c131eee-b053-89a3-b70d-99c915be8b92> .\n_:716fd7dda61bda72856885658d99321b bridge:arrivedAs <ni:///sha-256;ctYWRBnT5N3liymcP4m8N4lMe9EQanKPRcLrnQ9vu50> ;\n\toa:hasSelector _:90aa839bbca7955c7b0fb8e601526239 ;\n\toa:hasSource <ni:///sha-256;XugmuDppkuJKDUlYXjI_uh0P7eCjegHVbLVmMscCLvI> ;\n\tprov:wasDerivedFrom <ni:///sha-256;XugmuDppkuJKDUlYXjI_uh0P7eCjegHVbLVmMscCLvI> ;\n\tprov:wasGeneratedBy _:43f1933945ecbe982b74b486d4bba4b7 .\n_:90aa839bbca7955c7b0fb8e601526239 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;XugmuDppkuJKDUlYXjI_uh0P7eCjegHVbLVmMscCLvI> pav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:222757dedc052e5e93316a5956c283ab ;\n\tprov:wasAttributedTo _:cf4bd47a99fd956d51178fa652056586 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:423ff83c965a0c8b3cd3af013b5c920a prov:agent _:cf4bd47a99fd956d51178fa652056586 ;\n\tprov:hadRole cascade:AuthorRole .\n_:222757dedc052e5e93316a5956c283ab prov:qualifiedAssociation _:423ff83c965a0c8b3cd3af013b5c920a .\n_:2b16ae14000829e89af3ba19c99f4cdf prov:agent _:3a13c24747617efaf528de61b2c4e5e3 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:222757dedc052e5e93316a5956c283ab prov:qualifiedAssociation _:2b16ae14000829e89af3ba19c99f4cdf .\n_:cf4bd47a99fd956d51178fa652056586 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:3a13c24747617efaf528de61b2c4e5e3 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:43f1933945ecbe982b74b486d4bba4b7 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health export\" ;\n\tprov:startedAtTime \"2026-09-01T10:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;XugmuDppkuJKDUlYXjI_uh0P7eCjegHVbLVmMscCLvI> a prov:Entity .\n_:43f1933945ecbe982b74b486d4bba4b7 a prov:Activity ;\n\tprov:used <ni:///sha-256;XugmuDppkuJKDUlYXjI_uh0P7eCjegHVbLVmMscCLvI> ;\n\tprov:qualifiedAssociation _:ddd5bac17bd243bab8319b61bbc7e602 .\n_:ddd5bac17bd243bab8319b61bbc7e602 prov:hadPlan _:d837ef3461907cedc7bb0e838c70b342 .\n_:d837ef3461907cedc7bb0e838c70b342 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:ddd5bac17bd243bab8319b61bbc7e602 prov:agent _:265a31b27b0581a0e9cce40c35184de6 .\n_:265a31b27b0581a0e9cce40c35184de6 a prov:SoftwareAgent ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"Cascade Bridge for Rust\" ;\n\tpav:version \"0.1.0\" .\n"}, "expectedFindings": {"file": "fixtures/findings/medication-dispense-prescription-without-server.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/medication-dispense-prescription-without-server.ttl", "text": "@prefix fhirr4: <https://ns.cascadeprotocol.org/adapter/fhir-r4/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_:c24f85988f7e246d3647a9b50294223 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:d633480d1daa8afc4cecc6ff13694b02 oa:hasSource <../in/medication-dispense-prescription-without-server.json> .\n_:c24f85988f7e246d3647a9b50294223 oa:refinedBy _:c871773b78d3f98d0ab0eef504898e1b .\n_:c871773b78d3f98d0ab0eef504898e1b a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/authorizingPrescription/0/reference\" .\n_:d633480d1daa8afc4cecc6ff13694b02 oa:hasSelector _:c24f85988f7e246d3647a9b50294223 .\n_:c9334985bf7e37ad017326aa60bd6dfc oa:hasTarget _:d633480d1daa8afc4cecc6ff13694b02 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:authorizingPrescriptionNotNamed ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"MedicationRequest/medrx-metformin-1\" .\n_:ca6f06494c052dbdd0b11da3590d29aa a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b6e58888ddb63883b051c0e780cfd942 oa:hasSource <../in/medication-dispense-prescription-without-server.json> .\n_:ca6f06494c052dbdd0b11da3590d29aa oa:refinedBy _:b5df5cca837cbbb6f7e6080019a37cc2 .\n_:b5df5cca837cbbb6f7e6080019a37cc2 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/subject/reference\" .\n_:b6e58888ddb63883b051c0e780cfd942 oa:hasSelector _:ca6f06494c052dbdd0b11da3590d29aa .\n_:c0bd678e7e559c8d23891346759c1b36 oa:hasTarget _:b6e58888ddb63883b051c0e780cfd942 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:referenceWithoutServer ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Patient/pat-conformance-1\" .\n", "empty": false}}