FHIR는 참조가 [resource type]/[resource ID]/_history/[version ID] 형식을 사용하여 리소스의 특정 이전 버전을 가리키도록 합니다. 참조 무결성은 만들거나 업데이트할 때 참조에 적용되지만 Resource-purge 메서드를 사용하여 리소스의 이전 버전을 삭제하는 경우 수신되는 참조는 확인되지 않습니다.
FHIR import 메서드는 참조 무결성을 적용하지 않습니다. 참조 무결성이 필요하지 않거나 입력이 참조 무결성을 충족하는 것으로 알려진 경우 이 메서드를 사용할 수 있습니다. 후자의 경우 모든 리소스 가져오기가 성공적으로 완료되면 FHIR 저장소 내의 참조가 eventual consistency에 도달합니다.
deidentify 메서드는 필터를 사용하여 리소스의 하위 집합을 선택하는 경우, 작업 중에 일시적으로 또는 영구적으로 참조 무결성을 충족하지 않는 상태로 FHIR 저장소를 만들 수 있습니다.
무결성이 시행되지만 이전 사례 중 하나로 위반된 경우 업데이트가 수정되거나 유효하지 않은 참조를 모두 삭제하지 않는 한 유효하지 않은 참조가 포함된 리소스에서의 리소스 업데이트는 거부됩니다. 이러한 상태로 인해 무결성이 가정되는 저장소를 사용하는 애플리케이션에도 문제가 발생할 수 있습니다.
포함된 리소스
FHIR 사양은 모든 포함된 리소스가 포함하고 있는 리소스(다른 포함된 리소스의 참조 포함) 내의 어딘가에서 참조되어야 하며 포함된 리소스에 대한 모든 참조가 유효해야 한다는 제약 조건을 포함합니다. 이 제약 조건은 참조 무결성과 별도로 적용되며 각 개별 리소스의 FHIRPath 불변에 정의되므로 사용 중지할 수 없습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-10(UTC)"],[[["This page outlines how the Cloud Healthcare API's FHIR store enforces referential integrity on references to other resources within the same store, causing operations to fail if references are invalid or if referenced resources are deleted."],["Referential integrity can be disabled during FHIR store creation using the `disableReferentialIntegrity` option."],["Certain types of references, such as external URLs, logical identifiers, or simple display strings, are excluded from referential integrity checks, and references within FHIR extensions are only checked if `complexDataTypeReferenceParsing` is enabled."],["Specific API methods like `Resource-purge`, `import`, and `deidentify` can bypass referential integrity checks, potentially leading to a state where integrity is violated."],["The FHIR specification's constraint on contained resources, which requires them to be referenced within their containing resource and every reference to them to be valid, is enforced independently and cannot be disabled."]]],[]]