{"name": "procedure-contained-empty-version-id", "comment": "A contained Condition whose container states an empty meta.versionId beside its meta.lastUpdated: the empty version counts as none, so the contained record is named from the lastUpdated.", "input": {"file": "fixtures/in/procedure-contained-empty-version-id.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/procedure-contained-empty-version-id.json", "text": "{\n  \"resourceType\": \"Procedure\",\n  \"id\": \"proc-echo-1\",\n  \"meta\": {\n    \"versionId\": \"\",\n    \"lastUpdated\": \"2025-06-11T10:00:00Z\"\n  },\n  \"contained\": [\n    {\n      \"resourceType\": \"Condition\",\n      \"id\": \"reason\",\n      \"code\": {\n        \"coding\": [\n          {\n            \"system\": \"http://snomed.info/sct\",\n            \"code\": \"48867003\",\n            \"display\": \"Bradycardia\"\n          }\n        ],\n        \"text\": \"Bradycardia\"\n      },\n      \"subject\": {\n        \"reference\": \"Patient/pat-conformance-1\"\n      }\n    }\n  ],\n  \"status\": \"completed\",\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://snomed.info/sct\",\n        \"code\": \"40701008\",\n        \"display\": \"Echocardiography\"\n      }\n    ],\n    \"text\": \"Echocardiography\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"performedDateTime\": \"2025-06-11\",\n  \"reasonReference\": [\n    {\n      \"reference\": \"#reason\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/procedure-contained-empty-version-id.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/procedure-contained-empty-version-id.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;A7Y6jcnNldUa0STtJphAbeNfLkaH2n9G-yiMNPgZzsI> cascade:conditionName \"Bradycardia\" ;\n\tcascade:conditionCode <http://snomed.info/id/48867003> .\n<ni:///sha-256;4ESHtvBNPlnOe5iNQxbU_so_E46Ioq6VnfRvuiiDIAU> cascade:procedureName \"Echocardiography\" ;\n\tcascade:procedureCode <http://snomed.info/id/40701008> ;\n\tcascade:procedureDate \"2025-06-11\"^^xsd:date ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:86875af4-7cd3-86e8-84f4-3e774d5f2947> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-echo-1> ;\n\tcascade:sourceRecordId \"proc-echo-1\" .\n<ni:///sha-256;4ESHtvBNPlnOe5iNQxbU_so_E46Ioq6VnfRvuiiDIAU> prov:specializationOf <urn:uuid:86875af4-7cd3-86e8-84f4-3e774d5f2947> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:422343549d57dc7fe5a9f500870f9449 bridge:arrivedAs <ni:///sha-256;4ESHtvBNPlnOe5iNQxbU_so_E46Ioq6VnfRvuiiDIAU> ;\n\tpav:version \"\" ;\n\tpav:lastUpdateOn \"2025-06-11T10:00:00Z\"^^xsd:dateTime .\n<urn:uuid:7783bd4e-93a3-88ad-b468-ccc681ac24d6> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-echo-1#reason> ;\n\tcascade:sourceRecordId \"reason\" .\n<ni:///sha-256;A7Y6jcnNldUa0STtJphAbeNfLkaH2n9G-yiMNPgZzsI> prov:specializationOf <urn:uuid:7783bd4e-93a3-88ad-b468-ccc681ac24d6> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:7e6edac03691aaead79334aa37a4b257 bridge:arrivedAs <ni:///sha-256;A7Y6jcnNldUa0STtJphAbeNfLkaH2n9G-yiMNPgZzsI> ;\n\toa:hasSelector _:d4f56a1fbfb35ef1fc7601ec1dc7ff8f .\n_:d4f56a1fbfb35ef1fc7601ec1dc7ff8f a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/contained/0\" .\n_:7e6edac03691aaead79334aa37a4b257 oa:hasSource <ni:///sha-256;OwNBNwZHGAzttINbZuIqV7EUek4VNjfwdI9NiZtEvyY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;OwNBNwZHGAzttINbZuIqV7EUek4VNjfwdI9NiZtEvyY> ;\n\tprov:wasGeneratedBy _:cec52447bfb6fbe9eedd68a6c6c22d9f .\n_:422343549d57dc7fe5a9f500870f9449 oa:hasSelector _:32d044ea6ada09c94b56b0f7a7a6e688 ;\n\toa:hasSource <ni:///sha-256;OwNBNwZHGAzttINbZuIqV7EUek4VNjfwdI9NiZtEvyY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;OwNBNwZHGAzttINbZuIqV7EUek4VNjfwdI9NiZtEvyY> ;\n\tprov:wasGeneratedBy _:cec52447bfb6fbe9eedd68a6c6c22d9f .\n_:32d044ea6ada09c94b56b0f7a7a6e688 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;OwNBNwZHGAzttINbZuIqV7EUek4VNjfwdI9NiZtEvyY> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedFrom <https://FHIR.Meridian.example/api/FHIR/R4/Procedure/proc-echo-1> ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:8c65c5a739c2a6bc1a6fc14cd878250f ;\n\tprov:wasAttributedTo _:bf1ce2ce74b3a2a2beca871260d9cec9 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:97af8de41f7bdd1b9c53abf47e0a7682 prov:agent _:bf1ce2ce74b3a2a2beca871260d9cec9 ;\n\tprov:hadRole cascade:AuthorRole .\n_:8c65c5a739c2a6bc1a6fc14cd878250f prov:qualifiedAssociation _:97af8de41f7bdd1b9c53abf47e0a7682 .\n_:3db85499d52269fac61df186be60e592 prov:agent _:ad2b0bb3d5d284045d9f9c389879d6d4 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:8c65c5a739c2a6bc1a6fc14cd878250f prov:qualifiedAssociation _:3db85499d52269fac61df186be60e592 .\n_:bf1ce2ce74b3a2a2beca871260d9cec9 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:ad2b0bb3d5d284045d9f9c389879d6d4 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:cec52447bfb6fbe9eedd68a6c6c22d9f <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;OwNBNwZHGAzttINbZuIqV7EUek4VNjfwdI9NiZtEvyY> a prov:Entity .\n_:cec52447bfb6fbe9eedd68a6c6c22d9f a prov:Activity ;\n\tprov:used <ni:///sha-256;OwNBNwZHGAzttINbZuIqV7EUek4VNjfwdI9NiZtEvyY> ;\n\tprov:qualifiedAssociation _:172c6566dda8c09a5b0e2b467919f435 .\n_:172c6566dda8c09a5b0e2b467919f435 prov:hadPlan _:5ecbebebdd9e68b5d1b00089ed763344 .\n_:5ecbebebdd9e68b5d1b00089ed763344 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:172c6566dda8c09a5b0e2b467919f435 prov:agent _:ff1106a622c2203e5a82836ebc0b6d1b .\n_:ff1106a622c2203e5a82836ebc0b6d1b 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/procedure-contained-empty-version-id.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/procedure-contained-empty-version-id.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_:d971b731bfec73617b7bacbdf25f77b4 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:ebf6d00d6b00f168aafcddd234190caf a oa:Annotation ;\n\toa:hasTarget _:ebfc462658fcf7efa3a49479cbbddf01 .\n_:ebfc462658fcf7efa3a49479cbbddf01 oa:hasSource <../in/procedure-contained-empty-version-id.json> ;\n\toa:hasSelector _:d971b731bfec73617b7bacbdf25f77b4 .\n_:ebf6d00d6b00f168aafcddd234190caf 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_:c03413bbcf676cc75102f01c0b92f4cb a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:cff9fba8d2ce2291fe5b4c1e57747627 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/reasonReference/0/reference\" .\n_:c03413bbcf676cc75102f01c0b92f4cb oa:refinedBy _:cff9fba8d2ce2291fe5b4c1e57747627 .\n_:ccddac4d42a748d60b78785481ab087c a oa:Annotation ;\n\toa:hasTarget _:c3008bfcec3ee73f9a35c16ebc2a17fd .\n_:c3008bfcec3ee73f9a35c16ebc2a17fd oa:hasSource <../in/procedure-contained-empty-version-id.json> ;\n\toa:hasSelector _:c03413bbcf676cc75102f01c0b92f4cb .\n_:ccddac4d42a748d60b78785481ab087c oa:hasBody fhirr4:procedureReason ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/reasonReference/reference\" ;\n\tsh:resultSeverity sh:Info .\n", "empty": false}}