{
  "resourceType": "StructureDefinition",
  "url": "http://example.org/fhir/StructureDefinition/Consent_KR_PHR",
  "name": "Consent_KR_PHR",
  "status": "draft",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent",
        "path": "Consent",
        "short": "특정 목적과 기간에 대한 조치를 수행하는 수령인 또는 역할을 허용하거나 거부하는 의료 소비자의 정책 선택",
        "definition": "특정 목적과 기간에 대해 확인된 수령인 또는 수령인 역할이 지정된 정책 상황/컨텍스트 (context) 내에서 하나 이상의 작업을 수행할 수 있도록 허용하거나 거부하는 의료 소비자의 정책 선택 기록."
      },
      {
        "id": "Consent.identifier",
        "path": "Consent.identifier",
        "short": "이 기록에 대한 식별자 (외부 참조)",
        "definition": "이 동의 기록 (Consent Statement)에 대한 유일한 식별자."
      },
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "short": "초안 | 제안 | 활성 | 거절 | 비활성 | 입력 오류",
        "definition": "이 동의의 현재 상태를 나타냄."
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "short": "동의서 분류 - 색인/회수용",
        "definition": "명세서에서 포함된 동의의 유형 분류. 이 요소는 동의서의 색인화 및 검색을 지원함."
      },
      {
        "id": "Consent.patient",
        "path": "Consent.patient",
        "short": "동의가 적용되는 대상",
        "definition": "이 동의가 적용되는 환자/의료 소비자."
      },
      {
        "id": "Consent.period",
        "path": "Consent.period",
        "short": "동의가 적용되는 기간",
        "definition": "동의가 적용되는 기간."
      },
      {
        "id": "Consent.dateTime",
        "path": "Consent.dateTime",
        "short": "동의가 생성되거나 색인된 시간",
        "definition": "동의가 발행/작성/색인된 시간."
      },
      {
        "id": "Consent.consentingParty",
        "path": "Consent.consentingParty",
        "short": "정책 및 예외에 동의하는자",
        "definition": "허가자 (동의지침에 열거된 권리를 부여할 책임이 있는 사람/조직) 또는 허가를 받는자 (동의지침을 준수할 책임이 있는 사람/조직). 동의지침 (Consent Directive)는 인가 및 금지 시행에 대한 의무나 제한을 포함함."
      },
      {
        "id": "Consent.actor",
        "path": "Consent.actor",
        "short": "누가 혹은 무엇이 이 동의에 의해 통제되는가",
        "definition": "누가 혹은 무엇이 이 동의에 의해 통제되는가. 여러명이 공유하는 특성으로 그룹 식별함. (예: 입원 행정원)"
      },
      {
        "id": "Consent.actor.role",
        "path": "Consent.actor.role",
        "short": "수행자의 역할",
        "definition": "수행자 (actor)가 동의서에 기술된 리소스 컨텐츠에 관여하는 방식을 설명함."
      },
      {
        "id": "Consent.actor.reference",
        "path": "Consent.actor.reference",
        "short": "수행자의 리소스",
        "definition": "수행자를 식별하는 리소스. 수행자를 그룹에서 공유하는 특성으로 식별함. (예: 입원 행정)"
      },
      {
        "id": "Consent.action",
        "path": "Consent.action",
        "short": "이 동의에 의해 제한되는 행동",
        "definition": "이 동의에 의해 제한되는 행동."
      },
      {
        "id": "Consent.organization",
        "path": "Consent.organization",
        "short": "동의의 관리인",
        "definition": "동의와 동의를 실행하는 인프라를 관리하는 조직."
      },
      {
        "id": "Consent.source[x]",
        "path": "Consent.source[x]",
        "short": "이 동의가 이루어진 원본",
        "definition": "이 동의서의 기반이 되는 원본. 원본은 스캔한 원본 용지 양식 또는 원본 동의 문서를 저장하는 문서 저장소(예: XDS)에 대한 참조일 수 있음."
      },
      {
        "id": "Consent.policy",
        "path": "Consent.policy",
        "short": "이 동의에서 다루는 정책",
        "definition": "이 동의 범위에 포함된 정책에 대한 참조. 정책은 조직적일 수 있지만, 종종 관할권 또는 법에 정의된다."
      },
      {
        "id": "Consent.policy.authority",
        "path": "Consent.policy.authority",
        "short": "정책을 적용하는 자",
        "definition": "동의 명령 (Consent Directives)과 관련된 정책을 시행하기 위한 규제 관할권 또는 책임을 가진 기업 또는 조직."
      },
      {
        "id": "Consent.policy.uri",
        "path": "Consent.policy.uri",
        "short": "이 동의에서 다루는 특정 정책",
        "definition": "이 동의 범위에 포함된 정책에 대한 참조. 정책은 조직적일 수 있지만, 종종 관할권 또는 법에 정의된다."
      },
      {
        "id": "Consent.policyRule",
        "path": "Consent.policyRule",
        "short": "동의가 적용되는 정책",
        "definition": "특정 계산 가능한 (computable) 정책에 대한 참조."
      },
      {
        "id": "Consent.securityLabel",
        "path": "Consent.securityLabel",
        "short": "영향을 받는 리소스를 정의하는 보안 라블 (Security Labels)",
        "definition": "이 동의에 의해 제어되는 리소스를 정의하는 보안 라블 (Security Labels) 세트. 둘 이상의 라벨이 지정된 경우, 모든 리소스는 지정된 라벨을 모두 가져야 함."
      },
      {
        "id": "Consent.purpose",
        "path": "Consent.purpose",
        "short": "계약이 체결된 활동의 환경 (context)",
        "definition": "이 동의에 의해 제어되는 사용자 활동의 환경 (사용자가 데이터에 액세스하는 이유)."
      },
      {
        "id": "Consent.dataPeriod",
        "path": "Consent.dataPeriod",
        "short": "이 동의에 의해 제어되는 데이터의 기간",
        "definition": "동의에 의해 통제되는 데이터를 제한하는 임상 또는 운영 관련 시간."
      },
      {
        "id": "Consent.data",
        "path": "Consent.data",
        "short": "이 동의에 의해 제어되는 데이터",
        "definition": "이 동의에 의해 제어되는 리소스."
      },
      {
        "id": "Consent.data.meaning",
        "path": "Consent.data.meaning",
        "short": "인스턴스 | 관련 | 의존되는 | 저자",
        "definition": "동의의 제한점을 시험할 때 리소스 참조를 해석하는 방법."
      },
      {
        "id": "Consent.data.reference",
        "path": "Consent.data.reference",
        "short": "실제 데이터 참초",
        "definition": "이 동의가 적용되는 리소스를 정의하는 특정 리소스에 대한 참조."
      },
      {
        "id": "Consent.except",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Except"
          }
        ],
        "path": "Consent.except",
        "short": "추가 규칙 - 권한 추가 또는 제거",
        "definition": "이 동의의 기본 정책에 대한 예외. 예외는 접근 권한의 추가 또는 제거일 수 있음."
      },
      {
        "id": "Consent.except.type",
        "path": "Consent.except.type",
        "short": "허가 | 거부",
        "definition": "예외 조건이 충족될 때 취할 조치(허용 또는 거부)."
      },
      {
        "id": "Consent.except.period",
        "path": "Consent.except.period",
        "short": "이 예외에 대한 기간",
        "definition": "이 예외가 유요한 기간."
      },
      {
        "id": "Consent.except.actor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ExceptActor"
          }
        ],
        "path": "Consent.except.actor",
        "short": "누가 혹은 무엇이 이 예의에 의해 통제되는가",
        "definition": "누가 혹은 무엇이 이 예외에 의해 통제되는가. 여러명이 공유하는 특성으로 그룹 식별함. (예: 입원 행정원)"
      },
      {
        "id": "Consent.except.actor.role",
        "path": "Consent.except.actor.role",
        "short": "수행자의 역할",
        "definition": "수행자 (actor)가 예외에 기술된 리소스 컨텐츠에 관여하는 방식을 설명함."
      },
      {
        "id": "Consent.except.actor.reference",
        "path": "Consent.except.actor.reference",
        "short": "수행자의 리소스",
        "definition": "수행자를 식별하는 리소스. 수행자를 그룹에서 공유하는 특성으로 식별함. (예: 입원 행정)"
      },
      {
        "id": "Consent.except.action",
        "path": "Consent.except.action",
        "short": "이 예외에 의해 제한되는 행동",
        "definition": "이 예외에 의해 제한되는 행동."
      },
      {
        "id": "Consent.except.securityLabel",
        "path": "Consent.except.securityLabel",
        "short": "영향을 받는 리소스를 정의하는 보안 라블 (Security Labels)",
        "definition": "이 동의에 의해 제어되는 리소스를 정의하는 보안 라블 (Security Labels) 세트. 둘 이상의 라벨이 지정된 경우, 모든 리소스는 지정된 라벨을 모두 가져야 함."
      },
      {
        "id": "Consent.except.purpose",
        "path": "Consent.except.purpose",
        "short": "이 예외에서 다루는 활동의 컨텍스트",
        "definition": "사용자가 수행하는 활동의 컨텍스트(사용자가 데이터에 액세스하는 이유)는 이 예외에 의해 제어됨."
      },
      {
        "id": "Consent.except.class",
        "path": "Consent.except.class",
        "short": "리소스 유형, 프로필, CDA 등등",
        "definition": "이 예외에서 다루는 정보 클래스. 형식은 FHIR 리소스 유형, 유형에 대한 프로파일, CDA 문서 또는 동의와 관련된 정보의 종류를 나타내는 다른 유형일 수 있음."
      },
      {
        "id": "Consent.except.code",
        "path": "Consent.except.code",
        "short": "LOINC, SNOWMED CT 코드 등등",
        "definition": "이 코드가 인스턴스에서 발견되면 예외가 적용됨."
      },
      {
        "id": "Consent.except.data",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ExceptData"
          }
        ],
        "path": "Consent.except.data",
        "short": "이 예외에 의해 제어되는 데이터",
        "definition": "이 예외에 의해 제어되는 리소스."
      },
      {
        "id": "Consent.except.data.meaning",
        "path": "Consent.except.data.meaning",
        "short": "인스턴스 | 관련 | 의존되는 | 저자",
        "definition": "동의의 제한점을 시험할 때 리소스 참조를 해석하는 방법."
      },
      {
        "id": "Consent.except.data.reference",
        "path": "Consent.except.data.reference",
        "short": "실제 데이터 참초",
        "definition": "이 동의가 적용되는 리소스를 정의하는 특정 리소스에 대한 참조."
      }
    ]
  }
}