{"name": "bundle-document-organizations-one-npi", "comment": "A custodian naming its NPI by the NPI's OID and two authors naming it by its URI: one organization record, one version read from the custodian, a finding for each of the two authors whose Organization holds a name that version lacks, and none for a third holding nothing it lacks, and one attribution in each role; and an author listing an OID-typed identifier before a urn:ietf:rfc:3986 one, named by the latter.", "input": {"file": "fixtures/in/bundle-document-organizations-one-npi.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-document-organizations-one-npi.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"document\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"urn:uuid:c05b6c7d-8e9f-4a0b-9c2d-4e5f60718293\",\n      \"resource\": {\n        \"resourceType\": \"Composition\",\n        \"status\": \"final\",\n        \"type\": {\n          \"coding\": [\n            {\n              \"system\": \"http://loinc.org\",\n              \"code\": \"60591-5\"\n            }\n          ]\n        },\n        \"subject\": {\n          \"reference\": \"urn:uuid:2b7c4e91-5d3a-4f68-9e1b-7a6c5d4e3f21\"\n        },\n        \"date\": \"2026-09-03\",\n        \"author\": [\n          {\n            \"reference\": \"urn:uuid:9d2e3f4a-5b6c-4d7e-8f9a-1b2c3d4e5f60\"\n          },\n          {\n            \"reference\": \"urn:uuid:ae3f4a5b-6c7d-4e8f-9a0b-2c3d4e5f6071\"\n          },\n          {\n            \"reference\": \"urn:uuid:bf4a5b6c-7d8e-4f9a-8b1c-3d4e5f607182\"\n          },\n          {\n            \"reference\": \"urn:uuid:d05b6c7d-8e9f-4a0b-9c2d-4e5f60718294\"\n          }\n        ],\n        \"title\": \"Patient summary\",\n        \"custodian\": {\n          \"reference\": \"urn:uuid:8c1d2e3f-4a5b-4c6d-9e7f-0a1b2c3d4e5f\"\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:2b7c4e91-5d3a-4f68-9e1b-7a6c5d4e3f21\",\n      \"resource\": {\n        \"resourceType\": \"Patient\",\n        \"name\": [\n          {\n            \"family\": \"Okonkwo\",\n            \"given\": [\n              \"Ada\"\n            ]\n          }\n        ],\n        \"gender\": \"female\",\n        \"birthDate\": \"1979-06-02\"\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:8c1d2e3f-4a5b-4c6d-9e7f-0a1b2c3d4e5f\",\n      \"resource\": {\n        \"resourceType\": \"Organization\",\n        \"identifier\": [\n          {\n            \"system\": \"https://kestrel.example/organization-ids\",\n            \"value\": \"KH\"\n          },\n          {\n            \"system\": \"urn:oid:2.16.840.1.113883.4.6\",\n            \"value\": \"1234567893\"\n          }\n        ],\n        \"name\": \"Kestrel Harbor Hospital\",\n        \"address\": [\n          {\n            \"text\": \"1200 Harbor Way, Kestrel Harbor, WA 98000\"\n          }\n        ]\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:9d2e3f4a-5b6c-4d7e-8f9a-1b2c3d4e5f60\",\n      \"resource\": {\n        \"resourceType\": \"Organization\",\n        \"identifier\": [\n          {\n            \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n            \"value\": \"1234567893\"\n          }\n        ],\n        \"name\": \"Kestrel Harbor Medical Group\"\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:ae3f4a5b-6c7d-4e8f-9a0b-2c3d4e5f6071\",\n      \"resource\": {\n        \"resourceType\": \"Organization\",\n        \"identifier\": [\n          {\n            \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n            \"value\": \"1234567893\"\n          }\n        ],\n        \"name\": \"Kestrel Harbor Hospital Cardiology\"\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:bf4a5b6c-7d8e-4f9a-8b1c-3d4e5f607182\",\n      \"resource\": {\n        \"resourceType\": \"Organization\",\n        \"identifier\": [\n          {\n            \"system\": \"urn:oid:2.16.840.1.113883.19.5.99999.5\",\n            \"value\": \"RCH-1\"\n          },\n          {\n            \"system\": \"urn:ietf:rfc:3986\",\n            \"value\": \"urn:oid:2.16.840.1.113883.19.5.99999.3\"\n          }\n        ],\n        \"name\": \"Riverside Community Hospital\"\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:d05b6c7d-8e9f-4a0b-9c2d-4e5f60718294\",\n      \"resource\": {\n        \"resourceType\": \"Organization\",\n        \"identifier\": [\n          {\n            \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n            \"value\": \"1234567893\"\n          }\n        ],\n        \"name\": \"Kestrel Harbor Hospital\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-document-organizations-one-npi.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-document-organizations-one-npi.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 dct: <http://purl.org/dc/terms/> .\n@prefix dcterms: <http://purl.org/dc/terms/> .\n@prefix org: <http://www.w3.org/ns/org#> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n@prefix pav: <http://purl.org/pav/> .\n<ni:///sha-256;NNIMacvE96ADGnK9fVzFKL0Dj454RxIVxPaN4Gkw7Z4> foaf:familyName \"Okonkwo\" ;\n\tfoaf:givenName \"Ada\" ;\n\tcascade:dateOfBirth \"1979-06-02\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<urn:uuid:e0247e77-1049-8494-aa7b-5b8887aa6b0b> a cascade:PatientProfile .\n<ni:///sha-256;NNIMacvE96ADGnK9fVzFKL0Dj454RxIVxPaN4Gkw7Z4> prov:specializationOf <urn:uuid:e0247e77-1049-8494-aa7b-5b8887aa6b0b> .\n_:d6b77867880196780edebdd080013054 bridge:arrivedAs <ni:///sha-256;NNIMacvE96ADGnK9fVzFKL0Dj454RxIVxPaN4Gkw7Z4> ;\n\toa:hasSelector _:50267b4faaa5342b895867e924f5c661 ;\n\toa:hasSource <ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> ;\n\tprov:wasGeneratedBy _:813943a0fe67b061fcc4a549ca5e792d .\n_:50267b4faaa5342b895867e924f5c661 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> a cascade:Organization .\n<ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> prov:wasGeneratedBy _:de80ffa070f4ecb98c166bb844c9b7fc ;\n\tprov:wasAttributedTo <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> .\n_:de80ffa070f4ecb98c166bb844c9b7fc prov:qualifiedAssociation _:dc9331f19c8bf8b65a394f1f3de2a5bd .\n_:dc9331f19c8bf8b65a394f1f3de2a5bd prov:agent <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> ;\n\tprov:hadRole cascade:CustodianRole .\n<ni:///sha-256;VngbwigCMkGdPCNTniVcVY_lGy6sn7H9kQ4HLTPAqps> prov:specializationOf <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> .\n_:823e9b02349f0f490dbd0efaf614a406 bridge:arrivedAs <ni:///sha-256;VngbwigCMkGdPCNTniVcVY_lGy6sn7H9kQ4HLTPAqps> .\n<ni:///sha-256;VngbwigCMkGdPCNTniVcVY_lGy6sn7H9kQ4HLTPAqps> foaf:name \"Kestrel Harbor Hospital\" ;\n\torg:identifier \"1234567893\"^^<http://hl7.org/fhir/sid/us-npi> , \"KH\"^^<https://kestrel.example/organization-ids> ;\n\tcascade:organizationAddress \"1200 Harbor Way, Kestrel Harbor, WA 98000\" .\n_:823e9b02349f0f490dbd0efaf614a406 oa:hasSelector _:1bb27455adb95ef89e789364d9237c75 ;\n\toa:hasSource <ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> ;\n\tprov:wasGeneratedBy _:813943a0fe67b061fcc4a549ca5e792d .\n_:1bb27455adb95ef89e789364d9237c75 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n<ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> prov:wasGeneratedBy _:eea7a33fb378e64b483f40868b668959 .\n_:eea7a33fb378e64b483f40868b668959 prov:qualifiedAssociation _:f9c44df36bbc91a9895580aa1a367edd .\n_:f9c44df36bbc91a9895580aa1a367edd prov:agent <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> ;\n\tprov:hadRole cascade:AuthorRole .\n<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> prov:wasGeneratedBy _:ee2a79dafb3fa6011c77f71fe0b3de4a ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:ee2a79dafb3fa6011c77f71fe0b3de4a prov:qualifiedAssociation _:ca15717a41fedd9de94c7a1b5b118b4f .\n_:ca15717a41fedd9de94c7a1b5b118b4f prov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> ;\n\tprov:hadRole cascade:AuthorRole .\n<ni:///sha-256;ZKCRlsdZDF_dd5vAgYobQgb7Vn2gCC-1NQyFyiGx59M> prov:specializationOf <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:e9379f26cb62852040336ffbc44a37cf bridge:arrivedAs <ni:///sha-256;ZKCRlsdZDF_dd5vAgYobQgb7Vn2gCC-1NQyFyiGx59M> .\n<ni:///sha-256;ZKCRlsdZDF_dd5vAgYobQgb7Vn2gCC-1NQyFyiGx59M> foaf:name \"Riverside Community Hospital\" ;\n\torg:identifier \"urn:oid:2.16.840.1.113883.19.5.99999.3\"^^<urn:ietf:rfc:3986> , \"RCH-1\"^^<urn:oid:2.16.840.1.113883.19.5.99999.5> .\n_:e9379f26cb62852040336ffbc44a37cf oa:hasSelector _:83bfbe213e8bfc85ca522dbacd05b84b ;\n\toa:hasSource <ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> ;\n\tprov:wasGeneratedBy _:813943a0fe67b061fcc4a549ca5e792d .\n_:83bfbe213e8bfc85ca522dbacd05b84b a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/5\" .\n<ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> pav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:eb45d8a3e67aca61ebbcbbf06683e30a ;\n\tprov:wasAttributedTo _:6c107c7c578e122f03fb32cce663f0d5 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:e863cb484ebb2fc0ebd7a8f1c46ae5bc prov:agent _:6c107c7c578e122f03fb32cce663f0d5 ;\n\tprov:hadRole cascade:AuthorRole .\n_:eb45d8a3e67aca61ebbcbbf06683e30a prov:qualifiedAssociation _:e863cb484ebb2fc0ebd7a8f1c46ae5bc .\n_:b64101dfca4878393db2c8e1754dd13c prov:agent _:a6c44a35c4793b006379bdb536700835 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:eb45d8a3e67aca61ebbcbbf06683e30a prov:qualifiedAssociation _:b64101dfca4878393db2c8e1754dd13c .\n_:6c107c7c578e122f03fb32cce663f0d5 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:a6c44a35c4793b006379bdb536700835 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:813943a0fe67b061fcc4a549ca5e792d <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;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> a prov:Entity .\n_:813943a0fe67b061fcc4a549ca5e792d a prov:Activity ;\n\tprov:used <ni:///sha-256;eN7foYUylLlq_zZUkA9W6vis0D0xBFgXnFos9SoT6bY> ;\n\tprov:qualifiedAssociation _:a6ec4a585fa9909bc6c3ad377d3d5186 .\n_:a6ec4a585fa9909bc6c3ad377d3d5186 prov:hadPlan _:faed1a8a41e2b5cc998f0479cd2d06ac .\n_:faed1a8a41e2b5cc998f0479cd2d06ac a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:a6ec4a585fa9909bc6c3ad377d3d5186 prov:agent _:b189b74e51da4c73f3713719c1cb6fa0 .\n_:b189b74e51da4c73f3713719c1cb6fa0 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/bundle-document-organizations-one-npi.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-document-organizations-one-npi.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_:d40cadeb211bbdd302183f49992f82e2 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:c69c93810500f48b3dda08fbb4a50c9d oa:hasSource <../in/bundle-document-organizations-one-npi.json> .\n_:d40cadeb211bbdd302183f49992f82e2 oa:refinedBy _:f5825992fd3ea69fa9f065dc649fd295 .\n_:f5825992fd3ea69fa9f065dc649fd295 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/resourceType\" .\n_:c69c93810500f48b3dda08fbb4a50c9d oa:hasSelector _:d40cadeb211bbdd302183f49992f82e2 .\n_:db7cdde524bdb178b8ade44eca6bf4ae oa:hasTarget _:c69c93810500f48b3dda08fbb4a50c9d ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:resourceTypeNotMapped ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Composition\" .\n_:bc812b587a167351d87d4d24563cf1ff a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/3\" .\n_:c0f5922f187f52aea4e7395f3b28a073 oa:hasSource <../in/bundle-document-organizations-one-npi.json> .\n_:bc812b587a167351d87d4d24563cf1ff oa:refinedBy _:b4c47d2067b5c15c6a3ce8c209623649 .\n_:b4c47d2067b5c15c6a3ce8c209623649 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource\" .\n_:c0f5922f187f52aea4e7395f3b28a073 oa:hasSelector _:bc812b587a167351d87d4d24563cf1ff .\n_:da9a9453ada966fcc50d60e013c8091 oa:hasTarget _:c0f5922f187f52aea4e7395f3b28a073 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:duplicateOrganizationNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"1234567893\"^^<http://hl7.org/fhir/sid/us-npi> .\n_:ce9e81ee64f40dc7c87e6a8d5f36347d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/4\" .\n_:f3f1cc8d182ad78d5d2cae67794a308d oa:hasSource <../in/bundle-document-organizations-one-npi.json> .\n_:ce9e81ee64f40dc7c87e6a8d5f36347d oa:refinedBy _:bbac01fe475c2796b63b9ac68c86edf7 .\n_:bbac01fe475c2796b63b9ac68c86edf7 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource\" .\n_:f3f1cc8d182ad78d5d2cae67794a308d oa:hasSelector _:ce9e81ee64f40dc7c87e6a8d5f36347d .\n_:b3354d7d8f90a8e30d941b3325c25c24 oa:hasTarget _:f3f1cc8d182ad78d5d2cae67794a308d ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:duplicateOrganizationNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"1234567893\"^^<http://hl7.org/fhir/sid/us-npi> .\n", "empty": false}}