{"name": "document-reference-type-codings", "comment": "A DocumentReference typed in SNOMED CT beside a LOINC coding with no code, named by its type's text, dated to the minute, which is padded; FHIR's schema refuses the minute.", "input": {"file": "fixtures/in/document-reference-type-codings.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/document-reference-type-codings.json", "text": "{\n  \"resourceType\": \"DocumentReference\",\n  \"id\": \"type-codings\",\n  \"status\": \"current\",\n  \"type\": {\n    \"text\": \"Clinic progress note\",\n    \"coding\": [\n      {\n        \"system\": \"http://snomed.info/sct\",\n        \"code\": \"371532007\",\n        \"display\": \"Progress report\"\n      },\n      {\n        \"system\": \"http://loinc.org\",\n        \"display\": \"Progress 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  \"date\": \"2026-08-20T14:05Z\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/document-reference-type-codings.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/document-reference-type-codings.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;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E> cascade:attachment <ni:///sha-256;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E#attachment-1> .\n<ni:///sha-256;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E#attachment-1> cascade:attachmentContentType \"text/plain\" .\n<ni:///sha-256;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E> cascade:narrativeText \"Seen for follow-up of a low vitamin B12.\" ;\n\tcascade:noteOrDocumentTypeName \"Clinic progress note\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentDate \"2026-08-20T14:05:00Z\"^^xsd:dateTime ;\n\tcascade:paddedDateTime <ni:///sha-256;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E#padded-noteOrDocumentDate> .\n<ni:///sha-256;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E#padded-noteOrDocumentDate> cascade:paddedDateTimeProperty cascade:noteOrDocumentDate ;\n\tcascade:timeAsWritten \"2026-08-20T14:05Z\" .\n<ni:///sha-256;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E> cascade:noteOrDocumentTypeCodeInOtherSystem \"371532007\"^^<http://snomed.info/sct> .\n<urn:uuid:22eb6160-8669-8aa1-b91e-d22909f36dd4> a cascade:ClinicalNoteOrDocument ;\n\tcascade:sourceUrl <http://example.org/fhir/DocumentReference/type-codings> ;\n\tcascade:sourceRecordId \"type-codings\" .\n<ni:///sha-256;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E> prov:specializationOf <urn:uuid:22eb6160-8669-8aa1-b91e-d22909f36dd4> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:eccf2ebaf476c8f4abac518ba2be37d2 bridge:arrivedAs <ni:///sha-256;mH1mhjnb-HmOk9NhF2g7AjDCsILCPlR1LQaX01nQ58E> ;\n\toa:hasSelector _:31aaf839243965bac4cb3df55a2c1a27 ;\n\toa:hasSource <ni:///sha-256;PYY_C085XBozZrymC-HmaLVhKH9Wei-9K8nLYUJWl4o> ;\n\tprov:wasDerivedFrom <ni:///sha-256;PYY_C085XBozZrymC-HmaLVhKH9Wei-9K8nLYUJWl4o> ;\n\tprov:wasGeneratedBy _:9bbd296d5fade80074772a4b026e1f81 .\n_:31aaf839243965bac4cb3df55a2c1a27 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;PYY_C085XBozZrymC-HmaLVhKH9Wei-9K8nLYUJWl4o> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:9bbd296d5fade80074772a4b026e1f81 <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;PYY_C085XBozZrymC-HmaLVhKH9Wei-9K8nLYUJWl4o> a prov:Entity .\n_:9bbd296d5fade80074772a4b026e1f81 a prov:Activity ;\n\tprov:used <ni:///sha-256;PYY_C085XBozZrymC-HmaLVhKH9Wei-9K8nLYUJWl4o> ;\n\tprov:qualifiedAssociation _:43dd1c16a7cf590e83af0d7b0bf3522c .\n_:43dd1c16a7cf590e83af0d7b0bf3522c prov:hadPlan _:9632788a1f8b8cbbc4ef4530724749e8 .\n_:9632788a1f8b8cbbc4ef4530724749e8 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:43dd1c16a7cf590e83af0d7b0bf3522c prov:agent _:e314297d91df5b8f42ff5bb9e89e3bdb .\n_:e314297d91df5b8f42ff5bb9e89e3bdb 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-type-codings.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/document-reference-type-codings.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_:f7abf64f1de9637fbb17fbf46ebba706 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:ee13afc02f5cd03d904246b5aef490b1 a oa:Annotation ;\n\toa:hasTarget _:e24934a4bcdbe92eb290539708dca7c5 .\n_:e24934a4bcdbe92eb290539708dca7c5 oa:hasSource <../in/document-reference-type-codings.json> ;\n\toa:hasSelector _:f7abf64f1de9637fbb17fbf46ebba706 .\n_:ee13afc02f5cd03d904246b5aef490b1 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_:be938a6ce0e67fb1b8d5c5d01d68c40e a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b2625964f4f79628f13dd27bfaeb9837 oa:hasSource <../in/document-reference-type-codings.json> .\n_:be938a6ce0e67fb1b8d5c5d01d68c40e oa:refinedBy _:d434226f90d68a21ca37e881e5d1ea39 .\n_:d434226f90d68a21ca37e881e5d1ea39 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/type/coding/1/system\" .\n_:b2625964f4f79628f13dd27bfaeb9837 oa:hasSelector _:be938a6ce0e67fb1b8d5c5d01d68c40e .\n_:b91fceb0dd60b0c9a8303838400559f4 oa:hasTarget _:b2625964f4f79628f13dd27bfaeb9837 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:codingNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"http://loinc.org\" .\n", "empty": false}}