{
  "resourceType": "StructureDefinition",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">統合患者IDと施設内患者IDとのひもづけを表すデータです。</div>"
  },
  "url": "http://hedx-pf.com/pidlink/fhir/StructureDefinition/PidLinkPatient",
  "version": "1.0.0",
  "name": "PidLinkPatient",
  "title": "ぴっどりんく患者ひもづけ情報",
  "status": "draft",
  "date": "2023-07-25",
  "publisher": "SBS Information System Co.,Ltd.",
  "contact": [
    {
      "name": "https://www.sbs-infosys.co.jp"
    }
  ],
  "description": "統合患者IDと施設内患者IDとのひもづけを表すデータです。統合患者IDは複数の施設内患者IDをひもづけるため、ぴっどりんくが独自に採番したものです。link中に含まれる施設内患者IDは全て同一人物のものです。患者ひもづけ情報を利用する外部システムはPatient.link.other.identifier.valueから施設内患者ID、Patient.link.other.identifier.assigner.identifier.valueから施設内患者IDを割り当てた保険医療機関コードを取得します。",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "rn:iso:std:iso:3166",
          "code": "JP",
          "display": "Japan"
        }
      ]
    }
  ],
  "purpose": "統合患者IDと施設内患者IDとのひもづけを表すデータで、複数保険医療機関のシステムに登録された患者情報を統合する目的で使用します。",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "short": "統合患者ID",
        "definition": "統合患者ID、ぴっどりんくが採番した統合患者IDを設定します。",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier.use",
        "path": "Patient.identifier.use",
        "fixedCode": "usual"
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "short": "統合患者IDの識別子体系",
        "definition": "ぴっどりんくの統合患者IDを表す”http://hedx-pf.com/pidlink/fhir/Common/IdSystems/pid”を指定します。",
        "min": 1,
        "example": [
          {
            "label": "PIDLink",
            "valueUri": "http://hedx-pf.com/pidlink/fhir/Common/IdSystems/pid"
          }
        ]
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "short": "統合患者IDの値",
        "definition": "統合患者IDの値です。"
      },
      {
        "id": "Patient.identifier.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "short": "統合患者IDアクティブ",
        "definition": "この統合患者IDがアクティブに使用されているかどうかを表します。統合患者IDにひもづく確定状態の施設内患者IDが1件も存在しない場合、非アクティブの扱いになります。",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "short": "患者氏名",
        "definition": "患者氏名、ダミーとして統合患者IDを設定します。",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "fixedCode": "temp"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "max": "0"
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "max": "0"
      },
      {
        "id": "Patient.name.prefix",
        "path": "Patient.name.prefix",
        "max": "0"
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "max": "0"
      },
      {
        "id": "Patient.name.period",
        "path": "Patient.name.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "max": "0"
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "max": "0"
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "max": "0"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "max": "0"
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "max": "0"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "max": "0"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "short": "ひもづけ情報",
        "definition": "ぴっどりんくが採番した統合患者IDにひもづく施設IDおよび施設内患者IDを設定します。リンクにはぴっとりんくで「確定」となった施設内患者IDのみ含まれ、「保留」のデータは含まれません。"
      },
      {
        "id": "Patient.link.other",
        "path": "Patient.link.other",
        "short": "リンクが参照する他の患者のリソース",
        "definition": "リンクが参照する他の患者リソースで、特定の施設にひもづけられた施設内患者IDを参照します。",
        "comment": "ここで関連者を参照すると、個人レコードを使用して患者と関連者を同じ個人として関連付ける必要がなくなります。",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Patient.link.other.reference",
        "path": "Patient.link.other.reference",
        "short": "患者リソースへの参照",
        "definition": "患者リソースへのリテラル参照を設定します。論理IDにはPIDLinkの命名規約（[施設内患者ID].[保健医療機関コード]）が設定されます。"
      },
      {
        "id": "Patient.link.other.identifier",
        "path": "Patient.link.other.identifier",
        "short": "施設内患者ID",
        "definition": "ぴっどりんくが採番した統合患者IDにひもづく施設内患者IDを設定します。",
        "min": 1
      },
      {
        "id": "Patient.link.other.identifier.value",
        "path": "Patient.link.other.identifier.value",
        "short": "施設内患者ID",
        "definition": "統合患者IDにひもづく施設内患者IDを設定します。",
        "min": 1
      },
      {
        "id": "Patient.link.other.identifier.period",
        "path": "Patient.link.other.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.link.other.identifier.assigner",
        "path": "Patient.link.other.identifier.assigner",
        "short": "施設情報",
        "definition": "施設内患者IDを管理する施設情報",
        "comment": "ぴっどりんくが採番した統合患者IDにひもづく施設内患者IDを管理する施設情報を論理参照で設定します。\r\nidentifier.value には原則として、10桁の保健医療機関コードを設定します。",
        "min": 1
      },
      {
        "id": "Patient.link.other.display",
        "path": "Patient.link.other.display",
        "max": "0"
      },
      {
        "id": "Patient.link.type",
        "path": "Patient.link.type",
        "definition": "統合患者IDと施設内患者ID間のリンクのタイプでseealsoを指定します。",
        "fixedCode": "seealso"
      }
    ]
  }
}