{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.synapxe.sg/StructureDefinition/profile-patient",
  "name": "Patient",
  "status": "active",
  "description": "This resource defines the patient involved in the remote clinical monitoring. Details like patient's name, contacts, gender, birth date, country code and preferred languages will be used. The institution (i.e AMK Polyclinic) that manages the remote clinical monitoring for the patient and the group organization (i.e National Healthcare Group Polyclinics) that owns the patient record will also be stored.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier.use",
        "path": "Patient.identifier.use",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type",
        "path": "Patient.identifier.type",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.coding.version",
        "path": "Patient.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Patient.identifier.type.coding.display",
        "path": "Patient.identifier.type.coding.display",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier.type.text",
        "path": "Patient.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "example": [
          {
            "label": "Identifier FIN",
            "valueUri": "http://fhir.synapxe.sg/NamingSystem/fin"
          }
        ]
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "constraint": [
          {
            "key": "empty-value-validation",
            "severity": "error",
            "human": "patient identification value cannot be empty",
            "expression": "$this.length() > 0"
          }
        ]
      },
      {
        "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",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "max": "0"
      },
      {
        "id": "Patient.name.text",
        "path": "Patient.name.text",
        "min": 1
      },
      {
        "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",
        "short": "phone | email",
        "min": 1
      },
      {
        "id": "Patient.telecom.system",
        "path": "Patient.telecom.system",
        "min": 1
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "id": "Patient.telecom.use",
        "path": "Patient.telecom.use",
        "binding": {
          "strength": "required",
          "description": "Use of contact point in RCM",
          "valueSet": "http://fhir.synapxe.sg/ValueSet/rcm-patient-contact-types"
        }
      },
      {
        "id": "Patient.telecom.rank",
        "path": "Patient.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.telecom.period",
        "path": "Patient.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "max": "0"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "min": 1
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "max": "0"
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "max": "0"
      },
      {
        "id": "Patient.address.text",
        "path": "Patient.address.text",
        "max": "0"
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "max": "0"
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "max": "0"
      },
      {
        "id": "Patient.address.district",
        "path": "Patient.address.district",
        "max": "0"
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "max": "0"
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "max": "0"
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "min": 1
      },
      {
        "id": "Patient.address.period",
        "path": "Patient.address.period",
        "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": "1"
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "min": 1
      },
      {
        "id": "Patient.communication.language",
        "path": "Patient.communication.language",
        "binding": {
          "strength": "required",
          "description": "IETF language tag for a human language used in RCM",
          "valueSet": "http://fhir.synapxe.sg/ValueSet/rcm-language"
        }
      },
      {
        "id": "Patient.communication.language.coding",
        "path": "Patient.communication.language.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.communication.language.coding.system",
        "path": "Patient.communication.language.coding.system",
        "min": 1,
        "fixedUri": "urn:ietf:bcp:47"
      },
      {
        "id": "Patient.communication.language.coding.version",
        "path": "Patient.communication.language.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.communication.language.coding.code",
        "path": "Patient.communication.language.coding.code",
        "min": 1
      },
      {
        "id": "Patient.communication.language.coding.display",
        "path": "Patient.communication.language.coding.display",
        "max": "0"
      },
      {
        "id": "Patient.communication.language.coding.userSelected",
        "path": "Patient.communication.language.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.communication.language.text",
        "path": "Patient.communication.language.text",
        "max": "0"
      },
      {
        "id": "Patient.communication.preferred",
        "path": "Patient.communication.preferred",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "short": "The institution that manage the remote care monitoring for the patient.",
        "definition": "The institution that manage the remote care monitoring for the patient. For example, Ang Mo Kio Polyclinic",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Patient.generalPractitioner.reference",
        "path": "Patient.generalPractitioner.reference",
        "min": 1
      },
      {
        "id": "Patient.generalPractitioner.type",
        "path": "Patient.generalPractitioner.type",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.identifier",
        "path": "Patient.generalPractitioner.identifier",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.display",
        "path": "Patient.generalPractitioner.display",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "short": "The group organization that owns the patient record",
        "definition": "The group organization that owns the patient record. For example, National Healthcare Group Polyclinics",
        "min": 1
      },
      {
        "id": "Patient.managingOrganization.reference",
        "path": "Patient.managingOrganization.reference",
        "min": 1
      },
      {
        "id": "Patient.managingOrganization.type",
        "path": "Patient.managingOrganization.type",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization.identifier",
        "path": "Patient.managingOrganization.identifier",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization.display",
        "path": "Patient.managingOrganization.display",
        "max": "0"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}