{
  "resourceType": "StructureDefinition",
  "id": "FinnishAppointmentPatient",
  "meta": {
    "lastUpdated": "2021-03-08T11:48:07.784+00:00"
  },
  "url": "http://hl7.fi/fhir/StructureDefinition/FinnishAppointmentPatient",
  "name": "FinnishAppointmentPatient",
  "status": "draft",
  "experimental": false,
  "date": "2021-03-02T11:11:39.6021691+00:00",
  "description": "Resource profile for patient to be used in Finnish social and healthcare setting. \r\nSupports official and temporary national ids. Supports home municipality extension.",
  "fhirVersion": "4.0.1",
  "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/HomeMunicipalityExtension"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierOfficial",
        "fixedIdentifier": {
          "use": "official"
        }
      },
      {
        "id": "Patient.identifier:sliceIdentifierOfficial.use",
        "path": "Patient.identifier.use",
        "definition": "Virallinen henkilötunnus",
        "requirements": "Virallinen henkilötunnus",
        "fixedCode": "official"
      },
      {
        "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:sliceIdentifierTemp",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierTemp",
        "fixedIdentifier": {
          "use": "temp"
        }
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.use",
        "path": "Patient.identifier.use",
        "fixedCode": "temp"
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.system",
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierTemp.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.contact.relationship.coding.system",
        "path": "Patient.contact.relationship.coding.system",
        "fixedUri": "urn:oid:1.2.246.537.6.882"
      },
      {
        "id": "Patient.communication.language.coding.system",
        "path": "Patient.communication.language.coding.system",
        "fixedUri": "urn:oid:1.2.246.537.5.40175.2008"
      }
    ]
  }
}