{"name": "condition-patient-reference-default-port", "comment": "A patient referenced by an absolute URL on the document's own server, its host in another case and https's default port written: it names the patient a reference relative to that server names.", "input": {"file": "fixtures/in/condition-patient-reference-default-port.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/condition-patient-reference-default-port.json", "text": "{\n  \"resourceType\": \"Condition\",\n  \"id\": \"cond-htn-1\",\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://snomed.info/sct\",\n        \"code\": \"38341003\",\n        \"display\": \"Hypertensive disorder\"\n      }\n    ],\n    \"text\": \"Hypertension\"\n  },\n  \"subject\": {\n    \"reference\": \"https://FHIR.Meridian.example:443/api/FHIR/R4/Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/condition-patient-reference-default-port.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/condition-patient-reference-default-port.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;iQV0zlxS9aSEhNtp9B8ciK32OBTXzr2O2o1bXwMNWP8> cascade:conditionName \"Hypertension\" ;\n\tcascade:conditionCode <http://snomed.info/id/38341003> .\n<urn:uuid:e3889c3a-faa3-8a4f-a9f6-84d1dd1d85a4> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Condition/cond-htn-1> ;\n\tcascade:sourceRecordId \"cond-htn-1\" .\n<ni:///sha-256;iQV0zlxS9aSEhNtp9B8ciK32OBTXzr2O2o1bXwMNWP8> prov:specializationOf <urn:uuid:e3889c3a-faa3-8a4f-a9f6-84d1dd1d85a4> ;\n\tcascade:patient <urn:uuid:9345c9cd-5ffc-8430-b2e2-ad4a7baef324> .\n_:b57c2127fc20fb5d45fb61d4b71ed02f bridge:arrivedAs <ni:///sha-256;iQV0zlxS9aSEhNtp9B8ciK32OBTXzr2O2o1bXwMNWP8> ;\n\toa:hasSelector _:a54fb92b445e1cdd6d0167dbd9059a ;\n\toa:hasSource <ni:///sha-256;jsEy3IafcKAIzZJwPUJNUVCuowiTeXfRUH9p_GWQa70> ;\n\tprov:wasDerivedFrom <ni:///sha-256;jsEy3IafcKAIzZJwPUJNUVCuowiTeXfRUH9p_GWQa70> ;\n\tprov:wasGeneratedBy _:bfde5caa440aefecbd9cb5eb6e181b50 .\n_:a54fb92b445e1cdd6d0167dbd9059a a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;jsEy3IafcKAIzZJwPUJNUVCuowiTeXfRUH9p_GWQa70> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedFrom <https://FHIR.Meridian.example/api/FHIR/R4/Condition/cond-htn-1> ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:20b012978f3fdd217edff9cec452353c ;\n\tprov:wasAttributedTo _:b133f81919d29763babf3135be20aeb6 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:76ef3fe172d3c80fcbb30b2a206d85f7 prov:agent _:b133f81919d29763babf3135be20aeb6 ;\n\tprov:hadRole cascade:AuthorRole .\n_:20b012978f3fdd217edff9cec452353c prov:qualifiedAssociation _:76ef3fe172d3c80fcbb30b2a206d85f7 .\n_:ea7a8b1c40f4cacae31be0bd306116a9 prov:agent _:20f408cf9028e4f906ebb2d982ae060c ;\n\tprov:hadRole cascade:TransmitterRole .\n_:20b012978f3fdd217edff9cec452353c prov:qualifiedAssociation _:ea7a8b1c40f4cacae31be0bd306116a9 .\n_:b133f81919d29763babf3135be20aeb6 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:20f408cf9028e4f906ebb2d982ae060c <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:bfde5caa440aefecbd9cb5eb6e181b50 <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;jsEy3IafcKAIzZJwPUJNUVCuowiTeXfRUH9p_GWQa70> a prov:Entity .\n_:bfde5caa440aefecbd9cb5eb6e181b50 a prov:Activity ;\n\tprov:used <ni:///sha-256;jsEy3IafcKAIzZJwPUJNUVCuowiTeXfRUH9p_GWQa70> ;\n\tprov:qualifiedAssociation _:697f1132869ed19aa5f53ba148933842 .\n_:697f1132869ed19aa5f53ba148933842 prov:hadPlan _:abb34a1b4e1773cb14c5b39d5d701208 .\n_:abb34a1b4e1773cb14c5b39d5d701208 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:697f1132869ed19aa5f53ba148933842 prov:agent _:db08f18b41003780fcfc98597722126 .\n_:db08f18b41003780fcfc98597722126 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/condition-patient-reference-default-port.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/condition-patient-reference-default-port.ttl", "text": "", "empty": true}}