{"name": "document-reference-two-authors", "comment": "A DocumentReference whose two authors name two Organizations: attributed to none, and each author reported; its name is the first of its two codings with a display.", "input": {"file": "fixtures/in/document-reference-two-authors.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/document-reference-two-authors.json", "text": "{\n  \"resourceType\": \"DocumentReference\",\n  \"id\": \"two-authors\",\n  \"status\": \"current\",\n  \"type\": {\n    \"coding\": [\n      {\n        \"system\": \"http://loinc.org\",\n        \"code\": \"11506-3\"\n      },\n      {\n        \"system\": \"http://snomed.info/sct\",\n        \"code\": \"371532007\",\n        \"display\": \"Progress report\"\n      },\n      {\n        \"system\": \"https://clinic.example/note-types\",\n        \"code\": \"pn\",\n        \"display\": \"Clinic note\"\n      }\n    ]\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-1\"\n  },\n  \"content\": [\n    {\n      \"attachment\": {\n        \"contentType\": \"text/plain\",\n        \"data\": \"U2VlbiBmb3IgZm9sbG93LXVwIG9mIGEgbG93IHZpdGFtaW4gQjEyLg==\"\n      }\n    }\n  ],\n  \"author\": [\n    {\n      \"reference\": \"Organization/clinic-1\"\n    },\n    {\n      \"reference\": \"Organization/clinic-2\"\n    }\n  ],\n  \"date\": \"2026-08-20T14:05:00Z\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/document-reference-two-authors.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/document-reference-two-authors.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;AIOK_Xt7KdKppWluV34K7mQp5u4ojcPLm9EY3WjoDWA> cascade:attachment <ni:///sha-256;AIOK_Xt7KdKppWluV34K7mQp5u4ojcPLm9EY3WjoDWA#attachment-1> .\n<ni:///sha-256;AIOK_Xt7KdKppWluV34K7mQp5u4ojcPLm9EY3WjoDWA#attachment-1> cascade:attachmentContentType \"text/plain\" .\n<ni:///sha-256;AIOK_Xt7KdKppWluV34K7mQp5u4ojcPLm9EY3WjoDWA> cascade:narrativeText \"Seen for follow-up of a low vitamin B12.\" ;\n\tcascade:noteOrDocumentTypeName \"Progress report\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentDate \"2026-08-20T14:05:00Z\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTypeCodeInOtherSystem \"pn\"^^<https://clinic.example/note-types> , \"371532007\"^^<http://snomed.info/sct> ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/11506-3> .\n<urn:uuid:2077ef57-8ca1-87cc-ae00-0f9722fb4224> a cascade:ClinicalNoteOrDocument ;\n\tcascade:sourceUrl <http://example.org/fhir/DocumentReference/two-authors> ;\n\tcascade:sourceRecordId \"two-authors\" .\n<ni:///sha-256;AIOK_Xt7KdKppWluV34K7mQp5u4ojcPLm9EY3WjoDWA> prov:specializationOf <urn:uuid:2077ef57-8ca1-87cc-ae00-0f9722fb4224> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:143b57adbc9a426aba084f6c79a4d729 bridge:arrivedAs <ni:///sha-256;AIOK_Xt7KdKppWluV34K7mQp5u4ojcPLm9EY3WjoDWA> ;\n\toa:hasSelector _:95001aaa8cc06966f246a26d5eb8ebf7 ;\n\toa:hasSource <ni:///sha-256;5qnzlNdwMvlJX5QOeWDMaidcDNHfurtVmOkEtfbSZXc> ;\n\tprov:wasDerivedFrom <ni:///sha-256;5qnzlNdwMvlJX5QOeWDMaidcDNHfurtVmOkEtfbSZXc> ;\n\tprov:wasGeneratedBy _:1eb7479aaec21a67ff77272fb6342532 .\n_:95001aaa8cc06966f246a26d5eb8ebf7 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;5qnzlNdwMvlJX5QOeWDMaidcDNHfurtVmOkEtfbSZXc> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:1eb7479aaec21a67ff77272fb6342532 <http://www.w3.org/2000/01/rdf-schema#label> \"Example server export\" ;\n\tprov:startedAtTime \"2026-10-13T09:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;5qnzlNdwMvlJX5QOeWDMaidcDNHfurtVmOkEtfbSZXc> a prov:Entity .\n_:1eb7479aaec21a67ff77272fb6342532 a prov:Activity ;\n\tprov:used <ni:///sha-256;5qnzlNdwMvlJX5QOeWDMaidcDNHfurtVmOkEtfbSZXc> ;\n\tprov:qualifiedAssociation _:30ed48040458c0e82ecb120fd2d2549c .\n_:30ed48040458c0e82ecb120fd2d2549c prov:hadPlan _:988d7f21036025da6cd0c26a3fe4e7c1 .\n_:988d7f21036025da6cd0c26a3fe4e7c1 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:30ed48040458c0e82ecb120fd2d2549c prov:agent _:71212e2f20f96173fd3eb542d98432 .\n_:71212e2f20f96173fd3eb542d98432 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/document-reference-two-authors.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/document-reference-two-authors.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_:a744c99f7ca90c2c5eb1f70c0ea887d8 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b39e2768d72233203a06df40c3467672 oa:hasSource <../in/document-reference-two-authors.json> .\n_:a744c99f7ca90c2c5eb1f70c0ea887d8 oa:refinedBy _:cafba1f202ebbe81c6e01292caf93c1e .\n_:cafba1f202ebbe81c6e01292caf93c1e a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/author/1/reference\" .\n_:b39e2768d72233203a06df40c3467672 oa:hasSelector _:a744c99f7ca90c2c5eb1f70c0ea887d8 .\n_:ff11cdb7cc5ba4f52d82cb054a63244c oa:hasTarget _:b39e2768d72233203a06df40c3467672 .\n_:f50c90db79d3b4a8fbd6bf2cdebeaadf a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:e730ef1eecef51f64136ea4f0f1f77d3 oa:hasSource <../in/document-reference-two-authors.json> .\n_:f50c90db79d3b4a8fbd6bf2cdebeaadf oa:refinedBy _:f171a119de455d206663fdd7b89bb11e .\n_:f171a119de455d206663fdd7b89bb11e a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/author/0/reference\" .\n_:e730ef1eecef51f64136ea4f0f1f77d3 oa:hasSelector _:f50c90db79d3b4a8fbd6bf2cdebeaadf .\n_:b63a282d6f23a20e829460e0362c3936 oa:hasTarget _:e730ef1eecef51f64136ea4f0f1f77d3 .\n_:ff11cdb7cc5ba4f52d82cb054a63244c sh:resultSeverity sh:Warning .\n_:b63a282d6f23a20e829460e0362c3936 sh:resultSeverity sh:Warning .\n_:ff11cdb7cc5ba4f52d82cb054a63244c a oa:Annotation ;\n\toa:hasBody fhirr4:performerCarriedOnlyAsOneOrganizationRecord ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Organization/clinic-2\" .\n_:b63a282d6f23a20e829460e0362c3936 a oa:Annotation ;\n\toa:hasBody fhirr4:performerCarriedOnlyAsOneOrganizationRecord ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Organization/clinic-1\" .\n", "empty": false}}