{
  "resourceType": "StructureDefinition",
  "id": "JPN-Patient",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-04-01T09:13:42.3497185+00:00"
  },
  "url": "http://niph.go.jp/fhir/StructureDefinition/JPN-Patient",
  "name": "JPN-Patient",
  "status": "draft",
  "date": "2019-04-01T09:13:40.0495119+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:nationality",
        "path": "Patient.extension",
        "sliceName": "nationality",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-nationality"
          }
        ]
      },
      {
        "id": "Patient.extension:nationality.extension:code",
        "path": "Patient.extension.extension",
        "sliceName": "code"
      },
      {
        "id": "Patient.extension:nationality.extension:code.valueCodeableConcept:valueCodeableConcept",
        "path": "Patient.extension.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept"
      },
      {
        "id": "Patient.extension:nationality.extension:period",
        "path": "Patient.extension.extension",
        "sliceName": "period"
      },
      {
        "id": "Patient.extension:nationality.extension:period.valuePeriod:valuePeriod",
        "path": "Patient.extension.extension.valuePeriod",
        "sliceName": "valuePeriod"
      },
      {
        "id": "Patient.extension:religion",
        "path": "Patient.extension",
        "sliceName": "religion",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-religion"
          }
        ]
      },
      {
        "id": "Patient.extension:religion.valueCodeableConcept:valueCodeableConcept",
        "path": "Patient.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept"
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/birthPlace"
          }
        ]
      },
      {
        "id": "Patient.extension:birthPlace.valueAddress:valueAddress",
        "path": "Patient.extension.valueAddress",
        "sliceName": "valueAddress"
      },
      {
        "id": "Patient.extension:race",
        "path": "Patient.extension",
        "sliceName": "race",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://example.org/fhir/StructureDefinition/extension-patient-race"
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1,
        "max": "3"
      },
      {
        "id": "Patient.name.extension",
        "path": "Patient.name.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.name.extension:transcription",
        "path": "Patient.name.extension",
        "sliceName": "transcription",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-representation"
          }
        ]
      },
      {
        "id": "Patient.name.extension:transcription.valueCode:valueCode",
        "path": "Patient.name.extension.valueCode",
        "sliceName": "valueCode"
      },
      {
        "id": "Patient.telecom.use",
        "path": "Patient.telecom.use",
        "comment": "EC:緊急連絡先(Emergency Contact)がFHIRにない。Extensionで対応できるが、そこまでする価値はあるか？　ECがあったら、とりあえずmobileにマッピングしてもいいのでは。\r\nThis is labeled as \"Is Modifier\" because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old."
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "comment": "CDAではF/M/UNだが、FHIRの分類に準拠させる。\r\nThe gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F.  Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, social, etc.)  However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice.  Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosonal and other gender aspects.  For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a \"hard\" error."
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "comment": "オリジナルの規格ではyyyymmddで記載せよとあるが、FHIRのdatetime形式で記載させる。\r\n幼児のためには時刻も必要と思われるので、birthTimeのextensionを追加する。\r\nAt least an estimated year should be provided as a guess if the real DOB is unknown  There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternaty/infant care systems)."
      },
      {
        "id": "Patient.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.birthDate.extension:birthTime",
        "path": "Patient.birthDate.extension",
        "sliceName": "birthTime",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-birthTime"
          }
        ]
      },
      {
        "id": "Patient.birthDate.extension:birthTime.valueDateTime:valueDateTime",
        "path": "Patient.birthDate.extension.valueDateTime",
        "sliceName": "valueDateTime"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "min": 1
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "definition": "home：自宅 work：職場"
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "definition": "市町村以下の住所（CDAのstreetAddressLine相当）は、ここに記載する。"
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "definition": "市町村、東京23区"
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "definition": "都道府県"
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "max": "0"
      },
      {
        "id": "Patient.maritalStatus.coding.system",
        "path": "Patient.maritalStatus.coding.system",
        "fixedUri": "http://hl7.org/fhir/ValueSet/marital-status"
      },
      {
        "id": "Patient.communication.language",
        "path": "Patient.communication.language",
        "comment": "患者が会話に利用する言語\r\nThe structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type."
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "short": "本退院サマリを記載した医療機関に関する住所、診療科、連絡先を記載する",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://example.org/fhir/StructureDefinition/JPN-Organization"
          }
        ]
      }
    ]
  }
}