{
  "resourceType": "StructureDefinition",
  "id": "c4bbe8f6-6f4d-430a-b9f3-d091a8909f94",
  "meta": {
    "versionId": "6",
    "lastUpdated": "2021-10-05T08:34:09.723+00:00"
  },
  "url": "http://nhn.no/dodsmelding/fhir/StructureDefinition/DodsmeldingPatient",
  "name": "DodsmeldingPatient",
  "status": "draft",
  "date": "2021-10-05T08:34:09.8882667+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.no/fhir/StructureDefinition/no-basis-Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.extension:citizenship",
        "path": "Patient.extension",
        "sliceName": "citizenship",
        "short": "C",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Patient.extension:ReasonForStay",
        "path": "Patient.extension",
        "sliceName": "ReasonForStay",
        "label": "ReasonForStay",
        "short": "ReasonForStay",
        "definition": "Onlye for use on patients with foreign identifier",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://nhn.no/dodsmelding/fhir/StructureDefinition/ReasonForStay"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:FNR",
        "path": "Patient.identifier",
        "sliceName": "FNR",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:FHN",
        "path": "Patient.identifier",
        "sliceName": "FHN",
        "max": "0"
      },
      {
        "id": "Patient.identifier:DNR",
        "path": "Patient.identifier",
        "sliceName": "DNR",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:HNR",
        "path": "Patient.identifier",
        "sliceName": "HNR",
        "max": "0"
      },
      {
        "id": "Patient.identifier:PUF",
        "path": "Patient.identifier",
        "sliceName": "PUF",
        "definition": "Needs definition",
        "comment": "Person uten fødselsnummer (PUF)",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:PUF.type",
        "path": "Patient.identifier.type",
        "example": [
          {
            "label": "Identifier type",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://api.helsepunkt.no/api/koder/8116",
                  "code": "SEF",
                  "display": "Svensk 'personnummer'"
                }
              ]
            }
          }
        ]
      },
      {
        "id": "Patient.identifier:PUF.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "label": "OID 8116",
        "short": "OID 8116",
        "definition": "From dodsmelding kode API. Based on codes from Volven oid 8116. Used in defining PUF identifier type. See https://www.ehelse.no/teknisk-dokumentasjon/oid-identifikatorserier-i-helse-og-omsorgstjenesten",
        "min": 1,
        "fixedUri": "https://api.helsepunkt.no/api/koder/8116"
      },
      {
        "id": "Patient.identifier:PUF.type.coding.version",
        "path": "Patient.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.identifier:PUF.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "label": "Identifier type code",
        "short": "Identifier type code",
        "min": 1
      },
      {
        "id": "Patient.identifier:PUF.type.coding.display",
        "path": "Patient.identifier.type.coding.display",
        "short": "Identifier type description"
      },
      {
        "id": "Patient.identifier:PUF.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier:PUF.type.text",
        "path": "Patient.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Patient.identifier:PUF.system",
        "path": "Patient.identifier.system",
        "max": "0"
      },
      {
        "id": "Patient.identifier:PUF.value",
        "path": "Patient.identifier.value",
        "label": "Identity value for PUF",
        "short": "Identity value",
        "min": 1
      },
      {
        "id": "Patient.identifier:PUF.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:PUF.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "short": "Full name",
        "definition": "The full name of the deceased. Needed when reporting persons without a Norwegian national identification number, i.e. no FNR or DNR.",
        "requirements": "The name of the deceased cannot be inferred without a Norwegian national identification number, and must therefore be provided manually. It is not required if the name of the deceased is unknown.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "definition": "The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father."
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "comment": "If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren't due to practical limitations.  This element is not called \"first name\" since given names do not always come first."
      },
      {
        "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",
        "requirements": "Required when the deceased does not have a Norwegian National identity number.",
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "short": "Indicates the date the individual deceased",
        "definition": "Indicates the date the individual deceased.",
        "comment": "The exact time of death is only required when reporting cause of death, and is a separate field in the CauseOfDeathQuestionnaire.",
        "requirements": "This profile's purpose is registering deceased patients, and the field is therefore mandatory.",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "short": "Residence",
        "comment": "Only the country of residence is of interest.",
        "requirements": "Required only when the deceased does not have a Norwegian National identity number (no FNR/DNR).",
        "max": "1",
        "example": [
          {
            "label": "Residence",
            "valueAddress": {
              "country": "SE"
            }
          }
        ]
      },
      {
        "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",
        "label": "Country code",
        "short": "Country code",
        "definition": "Country - a nation as commonly understood or generally accepted. Defined by a 2 letter code.",
        "comment": "ISO 3166 2 letter codes used in place of a human readable country name. Will be validated againt https://api.helsepunkt.no/api/koder/9043 that holds the defined country codes suppoted.",
        "requirements": "Required when deceased does not have a Norwegian National identity number (no FNR/DNR).",
        "min": 1,
        "mustSupport": true
      },
      {
        "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",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DodsmeldingPractitionerRole",
              "http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "max": "0"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}