{
  "resourceType": "StructureDefinition",
  "id": "fiphr-sd-questionnaire",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2021-02-22T10:11:08.208+00:00"
  },
  "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaire-r4",
  "version": "0.1.0",
  "name": "FIPHRSDQuestionnaire",
  "title": "Finnish PHR Questionnaire profile",
  "status": "draft",
  "experimental": false,
  "date": "2021-02-22T10:11:07.416771+00:00",
  "publisher": "Kela",
  "description": "Finnish PHR StructureDefinition for Questionnaire Resource",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "objimpl",
      "uri": "http://hl7.org/fhir/object-implementation",
      "name": "Object Implementation Information"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Questionnaire",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Questionnaire",
        "path": "Questionnaire",
        "short": "Finnish PHR Questionnaire profile"
      },
      {
        "id": "Questionnaire.meta",
        "path": "Questionnaire.meta",
        "min": 1
      },
      {
        "id": "Questionnaire.meta.profile",
        "path": "Questionnaire.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Questionnaire.meta.profile:fiphrProfile",
        "path": "Questionnaire.meta.profile",
        "sliceName": "fiphrProfile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaire-r4"
      },
      {
        "id": "Questionnaire.language",
        "path": "Questionnaire.language",
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "Questionnaire.extension",
        "path": "Questionnaire.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Questionnaire.extension:myExtension",
        "path": "Questionnaire.extension",
        "sliceName": "myExtension",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
            ]
          }
        ]
      },
      {
        "id": "Questionnaire.url",
        "path": "Questionnaire.url",
        "min": 1
      },
      {
        "id": "Questionnaire.identifier",
        "path": "Questionnaire.identifier",
        "min": 1
      },
      {
        "id": "Questionnaire.identifier.use",
        "path": "Questionnaire.identifier.use",
        "definition": "The purpose of this identifier. Finnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system)."
      },
      {
        "id": "Questionnaire.identifier.system",
        "path": "Questionnaire.identifier.system",
        "min": 1
      },
      {
        "id": "Questionnaire.identifier.value",
        "path": "Questionnaire.identifier.value",
        "min": 1
      },
      {
        "id": "Questionnaire.version",
        "path": "Questionnaire.version",
        "min": 1
      },
      {
        "id": "Questionnaire.name",
        "path": "Questionnaire.name",
        "min": 1
      },
      {
        "id": "Questionnaire.title",
        "path": "Questionnaire.title",
        "min": 1
      },
      {
        "id": "Questionnaire.subjectType",
        "path": "Questionnaire.subjectType",
        "max": "1",
        "fixedCode": "Patient"
      },
      {
        "id": "Questionnaire.date",
        "path": "Questionnaire.date",
        "min": 1
      },
      {
        "id": "Questionnaire.description",
        "path": "Questionnaire.description",
        "min": 1
      },
      {
        "id": "Questionnaire.useContext",
        "path": "Questionnaire.useContext",
        "max": "0"
      },
      {
        "id": "Questionnaire.jurisdiction",
        "path": "Questionnaire.jurisdiction",
        "max": "0"
      },
      {
        "id": "Questionnaire.code",
        "path": "Questionnaire.code",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://simplifier.net/finnishphr/fiphr-vs-questionnairecode"
        }
      },
      {
        "id": "Questionnaire.code:fiphrCode",
        "path": "Questionnaire.code",
        "sliceName": "fiphrCode",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Questionnaire.code:fiphrCode.system",
        "path": "Questionnaire.code.system",
        "min": 1,
        "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-questionnairecode"
      },
      {
        "id": "Questionnaire.code:fiphrCode.code",
        "path": "Questionnaire.code.code",
        "short": "Finnish PHR: Code for questionnaire",
        "min": 1
      },
      {
        "id": "Questionnaire.item",
        "path": "Questionnaire.item",
        "min": 1
      }
    ]
  }
}