{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2020-06-24T12:05:26.471+00:00"
  },
  "url": "http://helsedirektoratet.no/fhir/StructureDefinition/hdir-RelatedPerson-v1",
  "name": "HdirRelatedPersonV1",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "RelatedPerson",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "RelatedPerson.meta.security",
        "path": "RelatedPerson.meta.security",
        "max": "0"
      },
      {
        "id": "RelatedPerson.implicitRules",
        "path": "RelatedPerson.implicitRules",
        "max": "0"
      },
      {
        "id": "RelatedPerson.language",
        "path": "RelatedPerson.language",
        "max": "0"
      },
      {
        "id": "RelatedPerson.text",
        "path": "RelatedPerson.text",
        "max": "0"
      },
      {
        "id": "RelatedPerson.contained",
        "path": "RelatedPerson.contained",
        "max": "0"
      },
      {
        "id": "RelatedPerson.extension",
        "path": "RelatedPerson.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "RelatedPerson.extension:personStatus",
        "path": "RelatedPerson.extension",
        "sliceName": "personStatus",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://helsedirektoratet.no/fhir/StructureDefinition/hdir-PersonStatus"
            ]
          }
        ]
      },
      {
        "id": "RelatedPerson.extension:citizenship",
        "path": "RelatedPerson.extension",
        "sliceName": "citizenship",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ehelse.no/fhir/StructureDefinition/gd-person-citizenship"
            ]
          }
        ]
      },
      {
        "id": "RelatedPerson.extension:citizenship.extension:code",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "RelatedPerson.extension.extension",
        "sliceName": "code",
        "min": 1
      },
      {
        "id": "RelatedPerson.extension:citizenship.extension:code.value[x]",
        "path": "RelatedPerson.extension.extension.value[x]",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "iso3166-1-2",
          "valueSet": "http://hl7.org/fhir/ValueSet/iso3166-1-2"
        }
      },
      {
        "id": "RelatedPerson.extension:citizenship.extension:code.value[x].coding",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "RelatedPerson.extension.extension.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.extension:citizenship.extension:code.value[x].coding.system",
        "path": "RelatedPerson.extension.extension.value[x].coding.system",
        "min": 1
      },
      {
        "id": "RelatedPerson.extension:citizenship.extension:code.value[x].coding.version",
        "path": "RelatedPerson.extension.extension.value[x].coding.version",
        "max": "0"
      },
      {
        "id": "RelatedPerson.extension:citizenship.extension:code.value[x].coding.code",
        "path": "RelatedPerson.extension.extension.value[x].coding.code",
        "min": 1
      },
      {
        "id": "RelatedPerson.extension:citizenship.extension:code.value[x].coding.userSelected",
        "path": "RelatedPerson.extension.extension.value[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "RelatedPerson.extension:citizenship.extension:fregMetadata",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "RelatedPerson.extension.extension",
        "sliceName": "fregMetadata",
        "max": "0"
      },
      {
        "id": "RelatedPerson.identifier",
        "path": "RelatedPerson.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": true,
          "rules": "openAtEnd"
        },
        "min": 1
      },
      {
        "id": "RelatedPerson.identifier:FNR",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "RelatedPerson.identifier",
        "sliceName": "FNR",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://helsedirektoratet.no/fhir/StructureDefinition/hdir-Identifier-fnr"
            ]
          }
        ]
      },
      {
        "id": "RelatedPerson.identifier:DNR",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "RelatedPerson.identifier",
        "sliceName": "DNR",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://helsedirektoratet.no/fhir/StructureDefinition/hdir-Identifier-dnr"
            ]
          }
        ]
      },
      {
        "id": "RelatedPerson.active",
        "path": "RelatedPerson.active",
        "min": 1
      },
      {
        "id": "RelatedPerson.relationship",
        "path": "RelatedPerson.relationship",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.relationship.coding",
        "path": "RelatedPerson.relationship.coding",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "no-basis-family-relation",
          "valueSet": "http://hl7.no/fhir/ValueSet/no-basis-family-relation"
        }
      },
      {
        "id": "RelatedPerson.relationship.coding.system",
        "path": "RelatedPerson.relationship.coding.system",
        "min": 1
      },
      {
        "id": "RelatedPerson.relationship.coding.version",
        "path": "RelatedPerson.relationship.coding.version",
        "max": "0"
      },
      {
        "id": "RelatedPerson.relationship.coding.code",
        "path": "RelatedPerson.relationship.coding.code",
        "min": 1
      },
      {
        "id": "RelatedPerson.relationship.coding.userSelected",
        "path": "RelatedPerson.relationship.coding.userSelected",
        "max": "0"
      },
      {
        "id": "RelatedPerson.name",
        "path": "RelatedPerson.name",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            }
          ],
          "ordered": true,
          "rules": "openAtEnd"
        },
        "min": 1
      },
      {
        "id": "RelatedPerson.name:Preg",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "RelatedPerson.name",
        "sliceName": "Preg",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.name:Preg.use",
        "path": "RelatedPerson.name.use",
        "min": 1,
        "fixedCode": "official"
      },
      {
        "id": "RelatedPerson.name:Preg.text",
        "path": "RelatedPerson.name.text",
        "min": 1
      },
      {
        "id": "RelatedPerson.name:Preg.family",
        "path": "RelatedPerson.name.family",
        "min": 1
      },
      {
        "id": "RelatedPerson.name:Preg.given",
        "path": "RelatedPerson.name.given",
        "min": 1
      },
      {
        "id": "RelatedPerson.name:Preg.prefix",
        "path": "RelatedPerson.name.prefix",
        "max": "0"
      },
      {
        "id": "RelatedPerson.name:Preg.suffix",
        "path": "RelatedPerson.name.suffix",
        "max": "0"
      },
      {
        "id": "RelatedPerson.name:Preg.period",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "RelatedPerson.name.period",
        "max": "0"
      },
      {
        "id": "RelatedPerson.telecom",
        "path": "RelatedPerson.telecom",
        "max": "0"
      },
      {
        "id": "RelatedPerson.gender",
        "path": "RelatedPerson.gender",
        "min": 1
      },
      {
        "id": "RelatedPerson.address",
        "path": "RelatedPerson.address",
        "max": "0"
      },
      {
        "id": "RelatedPerson.photo",
        "path": "RelatedPerson.photo",
        "max": "0"
      },
      {
        "id": "RelatedPerson.communication",
        "path": "RelatedPerson.communication",
        "max": "0"
      }
    ]
  }
}