{"name": "patient-gender-not-a-code", "comment": "A Patient whose gender is F, none of the four codes of FHIR's administrative gender: the version states no gender, and the value is a finding of fhirr4:administrativeGenderNotMapped beside the schema's.", "input": {"file": "fixtures/in/patient-gender-not-a-code.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/patient-gender-not-a-code.json", "text": "{\n  \"resourceType\": \"Patient\",\n  \"name\": [\n    {\n      \"family\": \"Brandt\",\n      \"given\": [\n        \"Ilse\"\n      ]\n    }\n  ],\n  \"gender\": \"F\",\n  \"birthDate\": \"1966-12-01\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/patient-gender-not-a-code.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/patient-gender-not-a-code.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 oa: <http://www.w3.org/ns/oa#> .\n@prefix pav: <http://purl.org/pav/> .\n<ni:///sha-256;EifAfMqtpztdFVsgG-dRJUnPFnr2Ra03eh0jv2I5eUM> foaf:familyName \"Brandt\" ;\n\tfoaf:givenName \"Ilse\" ;\n\tcascade:dateOfBirth \"1966-12-01\"^^xsd:date .\n<urn:uuid:07d3958e-2491-8c0f-9673-ddcec2350a14> a cascade:PatientProfile .\n<ni:///sha-256;EifAfMqtpztdFVsgG-dRJUnPFnr2Ra03eh0jv2I5eUM> prov:specializationOf <urn:uuid:07d3958e-2491-8c0f-9673-ddcec2350a14> .\n_:d55731eb3bf9400910b2ba25bdfe8c45 bridge:arrivedAs <ni:///sha-256;EifAfMqtpztdFVsgG-dRJUnPFnr2Ra03eh0jv2I5eUM> ;\n\toa:hasSelector _:a49488c995f1c6dc8c919c7d168abd83 ;\n\toa:hasSource <ni:///sha-256;LOvMtkNu9qhD6AVjd0iJCJZDJOwaiet0lkCPXO_PjiY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;LOvMtkNu9qhD6AVjd0iJCJZDJOwaiet0lkCPXO_PjiY> ;\n\tprov:wasGeneratedBy _:56c4ee6ed88ceae107d5116445d423c0 .\n_:a49488c995f1c6dc8c919c7d168abd83 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;LOvMtkNu9qhD6AVjd0iJCJZDJOwaiet0lkCPXO_PjiY> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:3585aa83ef14fd5bee99abb57892ad5e ;\n\tprov:wasAttributedTo _:a04d0e97494543ae45158357c54d8a17 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:465e1429b155c930dd90bc58c51f858 prov:agent _:a04d0e97494543ae45158357c54d8a17 ;\n\tprov:hadRole cascade:AuthorRole .\n_:3585aa83ef14fd5bee99abb57892ad5e prov:qualifiedAssociation _:465e1429b155c930dd90bc58c51f858 .\n_:ef59a6957f85d1dcd546ee597765d1a7 prov:agent _:e5a697758ca0af9b54a61e3d8e727d0f ;\n\tprov:hadRole cascade:TransmitterRole .\n_:3585aa83ef14fd5bee99abb57892ad5e prov:qualifiedAssociation _:ef59a6957f85d1dcd546ee597765d1a7 .\n_:a04d0e97494543ae45158357c54d8a17 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:e5a697758ca0af9b54a61e3d8e727d0f <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:56c4ee6ed88ceae107d5116445d423c0 <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;LOvMtkNu9qhD6AVjd0iJCJZDJOwaiet0lkCPXO_PjiY> a prov:Entity .\n_:56c4ee6ed88ceae107d5116445d423c0 a prov:Activity ;\n\tprov:used <ni:///sha-256;LOvMtkNu9qhD6AVjd0iJCJZDJOwaiet0lkCPXO_PjiY> ;\n\tprov:qualifiedAssociation _:5c09671dfdc0ac607d81ce0d3c994327 .\n_:5c09671dfdc0ac607d81ce0d3c994327 prov:hadPlan _:c980dc9923a55340ee191f4270fd74bb .\n_:c980dc9923a55340ee191f4270fd74bb a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:5c09671dfdc0ac607d81ce0d3c994327 prov:agent _:f52b6297db532dbcd6995d9200a8862e .\n_:f52b6297db532dbcd6995d9200a8862e 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/patient-gender-not-a-code.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/patient-gender-not-a-code.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_:d4140944fff9c96deefe35996f7fe509 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:a75b9dfa671079e0a13abb5df389500a a oa:Annotation ;\n\toa:hasTarget _:e9625c75a8349e7afdc9962f92c946c3 .\n_:e9625c75a8349e7afdc9962f92c946c3 oa:hasSource <../in/patient-gender-not-a-code.json> ;\n\toa:hasSelector _:d4140944fff9c96deefe35996f7fe509 .\n_:a75b9dfa671079e0a13abb5df389500a oa:hasBody <https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-01#section-6.28> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:resultSeverity sh:Violation .\n_:e14047fe354f965eafdea92191405611 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:e82489f72c57780a7a122520d704ea4e oa:hasSource <../in/patient-gender-not-a-code.json> .\n_:e14047fe354f965eafdea92191405611 oa:refinedBy _:c7fb99af4e1e975dfc796703817868b3 .\n_:c7fb99af4e1e975dfc796703817868b3 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/gender\" .\n_:e82489f72c57780a7a122520d704ea4e oa:hasSelector _:e14047fe354f965eafdea92191405611 .\n_:c07682377cfaacabe8a017b5d8d11f82 oa:hasTarget _:e82489f72c57780a7a122520d704ea4e ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:administrativeGenderNotMapped ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"F\" .\n", "empty": false}}