{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2020-05-14T15:10:25.194+00:00"
  },
  "url": "https://fhir.cambio.se/r4/HumanNameSe.StructureDefinition.xml",
  "name": "HumanNameSe",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "HumanName",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/HumanName",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "HumanName",
        "path": "HumanName",
        "comment": "For guidance about Swedish names, see https://www4.skatteverket.se/rattsligvagledning/edition/2019.6/330272.html.\r\n\r\nIn short, a person should have one or several given names, and one family name. There are specific ways of handling middle name, for that, see the middleName extension."
      },
      {
        "id": "HumanName.extension",
        "path": "HumanName.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "HumanName.extension:MiddelName",
        "path": "HumanName.extension",
        "sliceName": "MiddelName",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.nordic/fhir/StructureDefinition/nordic-middlename"
            ]
          }
        ]
      },
      {
        "id": "HumanName.text",
        "path": "HumanName.text",
        "example": [
          {
            "label": "Name",
            "valueString": "Tolvan Tolvansson"
          }
        ]
      },
      {
        "id": "HumanName.family",
        "path": "HumanName.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.\r\n\r\nNote that middle names should be communicated using the middleName extension unless they actually are a part of the family name. See https://www4.skatteverket.se/rattsligvagledning/330287.html# for more information about middle names in a Swedish context.",
        "comment": "A family name in Sweden can consist of one or two names. If it consists of two names, it may or may not be separated by \"-\" but should always be communicated as one family name.",
        "example": [
          {
            "label": "Family name",
            "valueString": "Tolvansson"
          },
          {
            "label": "Family name",
            "valueString": "Elvansson Tolvansson"
          },
          {
            "label": "Family name",
            "valueString": "Elvansson-Tolvansson"
          }
        ]
      },
      {
        "id": "HumanName.given",
        "path": "HumanName.given",
        "short": "Given names (not always 'first')",
        "definition": "Given name(s).",
        "example": [
          {
            "label": "Given name",
            "valueString": "Tolvan"
          }
        ]
      },
      {
        "id": "HumanName.given.extension",
        "path": "HumanName.given.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "HumanName.given.extension:givenNameQualifier",
        "path": "HumanName.given.extension",
        "sliceName": "givenNameQualifier",
        "short": "Defining qualifier value for given name",
        "definition": "In Sweden code:CL should be used (Call me) to indicate that this given name is preferred by the patient (Swe: Tilltalsnamn).\r\n\r\nLS | AC | NB | PR | HON | BR | AD | SP | MID | CL | IN | VV",
        "comment": "Used to specificy the preferred given name",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"
            ]
          }
        ]
      },
      {
        "id": "HumanName.given.extension:givenNameQualifier.value[x]:valueCode",
        "path": "HumanName.given.extension.value[x]",
        "sliceName": "valueCode",
        "example": [
          {
            "label": "givenNameQualifier",
            "valueCode": "CL"
          }
        ]
      }
    ]
  }
}