{
  "resourceType": "StructureDefinition",
  "id": "FinnishSchedulingPatient",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2020-01-02T11:46:32.409+00:00"
  },
  "url": "http://hl7.fi/fhir/StructureDefinition/FinnishSchedulingPatient",
  "name": "FinnishSchedulingPatient",
  "status": "draft",
  "date": "2020-01-02T11:46:31.2851421Z",
  "description": "Resource profile for patient to be used in Finnish social and healthcare setting. Supports one official and one temporary id. Supports home municipality extension.",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:homeMunicipality",
        "path": "Patient.extension",
        "sliceName": "homeMunicipality",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.fi/fhir/StructureDefinition/hl7fiHomeMunicipalityExtensionR4"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            }
          ],
          "rules": "open"
        },
        "requirements": "51 Asiakkaan tunniste, virallinen henkilötunnus tai tilapäinen yksilöintitunnus",
        "min": 1,
        "max": "2"
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierOfficial",
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial.use",
        "path": "Patient.identifier.use",
        "definition": "Virallinen henkilötunnus",
        "requirements": "Virallinen henkilötunnus",
        "fixedCode": "official"
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial.type",
        "path": "Patient.identifier.type",
        "max": "0"
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "urn:oid:1.2.246.21"
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierTemp",
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.use",
        "path": "Patient.identifier.use",
        "fixedCode": "temp"
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.type",
        "path": "Patient.identifier.type",
        "max": "0"
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.system",
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "requirements": "52 Asiakkaan nimi",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.period",
        "path": "Patient.name.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "requirements": "Puhelinnumero ja sähköposti"
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "max": "0"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "requirements": "54 Asiakkaan osoitetiedot",
        "max": "1"
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "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.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": "0"
      },
      {
        "id": "Patient.contact.relationship",
        "path": "Patient.contact.relationship",
        "requirements": "61 Yhteyshenkilön tyyppi \r\nUsed to determine which contact person is the most relevant to approach, depending on circumstances.",
        "max": "1"
      },
      {
        "id": "Patient.contact.relationship.coding.system",
        "path": "Patient.contact.relationship.coding.system",
        "fixedUri": "urn:oid:1.2.245.537.6.882"
      },
      {
        "id": "Patient.contact.name",
        "path": "Patient.contact.name",
        "requirements": "62 Yhteyshenkilön nimi\r\nContact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person."
      },
      {
        "id": "Patient.contact.name.period",
        "path": "Patient.contact.name.period",
        "max": "0"
      },
      {
        "id": "Patient.contact.telecom",
        "path": "Patient.contact.telecom",
        "requirements": "64 Yhteyshenkilön yhteystieto\r\nPeople have (primary) ways to contact them in some way such as phone, email."
      },
      {
        "id": "Patient.contact.telecom.period",
        "path": "Patient.contact.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.contact.address",
        "path": "Patient.contact.address",
        "requirements": "63 Yhteyshenkilön osoitetiedot\r\nNeed to keep track where the contact person can be contacted per postal mail or visited."
      },
      {
        "id": "Patient.contact.gender",
        "path": "Patient.contact.gender",
        "max": "0"
      },
      {
        "id": "Patient.contact.organization",
        "path": "Patient.contact.organization",
        "max": "0"
      },
      {
        "id": "Patient.contact.period",
        "path": "Patient.contact.period",
        "max": "0"
      },
      {
        "id": "Patient.communication.language.coding.system",
        "path": "Patient.communication.language.coding.system",
        "fixedUri": "urn:oid:1.2.246.537.5.40175.2008"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "max": "0"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}