리소스

리소스

  • 의료정보는 리소스 타입 (ex: Patient)으로 정의

  • 하나의 리소스는 구조화된 여러 element들로 구성

  • 각각의 리소스는 URL 형태의 식별자를 갖는다.

  • Maturity 정보를 포함

리소스 타입

Administrative

  • Patient, Practitioner, Organization, Location, Coverage, Invoice

Clinical concept

  • Allergy, Condition, Family history, Care plan

Infrastructure

  • Document, Message, Profile, Capability

리소스 타입이 아닌 것

  • Gender → 의미가 너무 작음

  • Electronic Health Record → 의미가 너무 큼

  • Blood Pressure → 의미가 너무 협소

Q. Medication → 리소스 타입 O

Q. MedicationRequest → 리소스 타입 O

Q. MedicationIngredient → 리소스 타입 X

Q. MedicationKnoweledge → 리소스 타입 X

리소스 타입은 고유한 URL에 의해 식별됨

  • 사람이 읽을 수도 있고 컴퓨터가 해석할 수 있어야함

  • http://hl7.org/fhir/StructureDefinition/Patient

성숙도 (Maturity)

  • 각 리소스 타입에는 성숙도에 따라 버전 번호가 부여

Level 0: first draft

Level 1-3: working through HL7's review / testing process

Level 4-5: trailing in real world implementation

Normative: No longer subject to breaking change

Patient → N

Condition → not N

GenomeStudy → 0

FHIR는 계층 구조를 따른다.

실제 의료정보를 담는 리소스 타입은 도메인 정보에 해당

베이스 리소스

최상위 리소스 타입

4개의 최소 기본 항목만 포함

  • Id

    • http://test.fhir.org/rest/Patient/123 에서 123이 Patient 리소스의 Logical Id

    • 서버베이스 주소 + 리소스 타입 + logical id

  • Implicit Rules

    • 리소스가 어떻게 구현되어야 하는지에 대한 규칙 명시

  • language

    • 리소스의 기본 언어를 지정하는 속성

    • 리소스 안의 텍스트, narrative, 코드 디스플레이가 다른 언어로 사용될 수 있는데 이 언어를 명시 (human-readable)

  • Meta.versionId

    • 리소스 인스턴스의 version Id (NOT 리소스 타입의 version)

    • 동일한 리소스(logical Id)가 업데이트되면 변경되나 꼭 1씩 증가하지 않아도 됨

  • Meta.source

    • 리소스 정보의 소스 시스템을 가리키는 URI

  • Meta.profile

    • 해당 리소스의 프로파일 정보

  • Meta.security

    • 해당 리소스에 적용되는 Security label

  • Flag.MustSupport

    • mustSupport는 FHIR profile에서 사용하는 메타데이터 속성

    • 특정 데이터 요소를 해당 시스템이 반드시 지원해야 한다는 의미

    • "반드시 지원"이란 항상 채워져야 한다는 뜻이 아니라, 해당 요소가 존재할 경우 시스템이 처리 및 교환할 수 있어야 함을 의미

  • Flag: Modifier

    • Modifier가 true인 경우 그 항목의 의미가 본질적으로 달라짐

    • Patient active가 False라면 이 환자 관련된 다른 정보들(이름, 생년월일)을 사용할 수 없게 됨

  • Flag: Invariant

    • 제약조건(Constraint)이 설정되어 있는 항목임을 나타냄

  • Flag: Summary

    • FHIR 데이터를 서버에 요청할 때 _summary 파라미터를 통해 리소스 일부만 요청 가능한지 여부

도메인 리소스

필수적인 항목(Narrative, Extension, Contained Resource)만을 포함하는 리소스

Canonical Resource

  • 단순 임상 데이터가 아니라 다른 리소스나 아티팩트의 정의를 기술하는 리소스 유형 그룹


Patient 리소스

{
   "resourceType": "Patient",
   "id": "PT1234",
   "name": [
      {
         "family": [
            "Kim"
         ],
         "given": [
            "jeumsim"
         ]
      }
   ],
   "telecom": [
      {
         "value": "111-222-3333"
      }
   ],
   "gender": "male",
   "birthDate": "1978-01-01",
   "address": [
      {
         "text": "1-552 Yonge street Toronto, Ontario M4Y1YB"
      }
   ]
}

Organization 리소스

{
   "resourceType": "Organization",
   "id": "ORG1234",
   "name": "아주대학교 병원",
   "telecom": [
      {
         "value": "1688-6114",
         "use": "work"
      }
   ],
   "address": [
      {
         "text": "경기도 수원시 원천동 월드컵로 164"
      }
   ]
}

Encounter 리소스

{
   "resourceType": "Encounter",
   "id": "ENC1234",
   "status": "finished",
   "type": [
      {
         "text": "외래"
      }
   ],
   "period": {
      "start": "2020-07-02T14:45:30",
      "end": "2020-07-02T16:30:00"
   },
   "reason": [
      {
         "text": "백신접종"
      }
   ]
}

Encounter에 환자와 기관 정보를 연결

{
   "resourceType": "Encounter",
   "id": "ENC1234",
   "status": "finished",
   "type": [
      {
         "text": "외래"
      }
   ],
   "patient": {
      "reference": "PT1234"
   },
   "period": {
      "start": "2020-07-02T14:45:30",
      "end": "2020-07-02T16:30:00"
   },
   "reason": [
      {
         "text": "백신접종"
      }
   ],
   "location": [
      {
         "location": {
            "reference": "ORG1234"
         }
      }
   ]
}

Last updated

Was this helpful?