{
  "resourceType": "StructureDefinition",
  "id": "fiphr-sd-selfcaregoal-stu3",
  "meta": {
    "lastUpdated": "2017-08-14T06:15:49.511+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pc"
    }
  ],
  "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcaregoal-stu3",
  "version": "1.0",
  "name": "fiphr-sd-selfcaregoal-stu3",
  "title": "Finnish PHR SelfCareGoal profile",
  "status": "draft",
  "experimental": true,
  "date": "2018-09-10",
  "publisher": "SoteDigi Oy",
  "description": "StructureDefinition for FinnishPHR SelfCareGoal resource.",
  "fhirVersion": "3.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Goal",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Goal",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Goal.meta.profile",
        "path": "Goal.meta.profile",
        "min": 1,
        "max": "1",
        "fixedUri": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcaregoal-stu3"
      },
      {
        "id": "Goal.meta.security.system",
        "path": "Goal.meta.security.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v3/Confidentiality"
      },
      {
        "id": "Goal.meta.security.version",
        "path": "Goal.meta.security.version",
        "max": "0"
      },
      {
        "id": "Goal.meta.security.code",
        "path": "Goal.meta.security.code",
        "min": 1
      },
      {
        "id": "Goal.meta.security.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Goal.meta.security.display",
        "min": 1
      },
      {
        "id": "Goal.meta.security.userSelected",
        "path": "Goal.meta.security.userSelected",
        "max": "0"
      },
      {
        "id": "Goal.implicitRules",
        "path": "Goal.implicitRules",
        "max": "0"
      },
      {
        "id": "Goal.language",
        "path": "Goal.language",
        "min": 1,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueReference": {
                "reference": "http://hl7.org/fhir/ValueSet/all-languages"
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Language"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required",
          "description": "Finnish PHR: A code of human language."
        }
      },
      {
        "id": "Goal.text",
        "path": "Goal.text",
        "max": "0"
      },
      {
        "id": "Goal.contained",
        "path": "Goal.contained",
        "max": "0"
      },
      {
        "id": "Goal.extension",
        "path": "Goal.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Goal.extension:creatingApplication",
        "path": "Goal.extension",
        "sliceName": "creatingApplication",
        "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
          }
        ]
      },
      {
        "id": "Goal.identifier",
        "path": "Goal.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "exists",
              "path": "use"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Goal.identifier:FinnishPHRIdentifier",
        "path": "Goal.identifier",
        "sliceName": "FinnishPHRIdentifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Goal.identifier:FinnishPHRIdentifier.use",
        "path": "Goal.identifier.use",
        "min": 1,
        "fixedCode": "official"
      },
      {
        "id": "Goal.identifier:FinnishPHRIdentifier.type",
        "path": "Goal.identifier.type",
        "max": "0"
      },
      {
        "id": "Goal.identifier:FinnishPHRIdentifier.system",
        "path": "Goal.identifier.system",
        "min": 1,
        "fixedUri": "urn:ietf:rfc:3986"
      },
      {
        "id": "Goal.identifier:FinnishPHRIdentifier.value",
        "path": "Goal.identifier.value",
        "min": 1
      },
      {
        "id": "Goal.identifier:FinnishPHRIdentifier.period",
        "path": "Goal.identifier.period",
        "max": "0"
      },
      {
        "id": "Goal.identifier:FinnishPHRIdentifier.assigner",
        "path": "Goal.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Goal.identifier:otherIdentifier",
        "path": "Goal.identifier",
        "sliceName": "otherIdentifier"
      },
      {
        "id": "Goal.identifier:otherIdentifier.use",
        "path": "Goal.identifier.use",
        "max": "0"
      },
      {
        "id": "Goal.identifier:otherIdentifier.type",
        "path": "Goal.identifier.type",
        "max": "0"
      },
      {
        "id": "Goal.identifier:otherIdentifier.system",
        "path": "Goal.identifier.system",
        "min": 1
      },
      {
        "id": "Goal.identifier:otherIdentifier.value",
        "path": "Goal.identifier.value",
        "min": 1
      },
      {
        "id": "Goal.identifier:otherIdentifier.period",
        "path": "Goal.identifier.period",
        "max": "0"
      },
      {
        "id": "Goal.identifier:otherIdentifier.assigner",
        "path": "Goal.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Goal.status",
        "path": "Goal.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Goal.category",
        "path": "Goal.category",
        "max": "0"
      },
      {
        "id": "Goal.priority",
        "path": "Goal.priority",
        "max": "0",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "GoalPriority"
            }
          ],
          "strength": "preferred",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/goal-priority"
        }
      },
      {
        "id": "Goal.description.coding",
        "path": "Goal.description.coding",
        "max": "0"
      },
      {
        "id": "Goal.description.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Goal.description.text",
        "min": 1
      },
      {
        "id": "Goal.subject",
        "path": "Goal.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://phr.kanta.fi/StructureDefinition/fiphr-patient-stu3"
          }
        ]
      },
      {
        "id": "Goal.subject.reference",
        "path": "Goal.subject.reference",
        "min": 1
      },
      {
        "id": "Goal.subject.identifier",
        "path": "Goal.subject.identifier",
        "max": "0"
      },
      {
        "id": "Goal.subject.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Goal.subject.display",
        "max": "0"
      },
      {
        "id": "Goal.start[x]",
        "path": "Goal.start[x]",
        "max": "0"
      },
      {
        "id": "Goal.target",
        "path": "Goal.target",
        "max": "0"
      },
      {
        "id": "Goal.statusDate",
        "path": "Goal.statusDate",
        "max": "0"
      },
      {
        "id": "Goal.statusReason",
        "path": "Goal.statusReason",
        "max": "0"
      },
      {
        "id": "Goal.expressedBy",
        "path": "Goal.expressedBy",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://phr.kanta.fi/StructureDefinition/fiphr-patient-stu3"
          }
        ]
      },
      {
        "id": "Goal.addresses",
        "path": "Goal.addresses",
        "max": "0"
      },
      {
        "id": "Goal.note",
        "path": "Goal.note",
        "max": "0"
      },
      {
        "id": "Goal.note.author[x]:authorReference",
        "path": "Goal.note.authorReference",
        "sliceName": "authorReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://phr.kanta.fi/StructureDefinition/fiphr-patient-stu3"
          }
        ]
      },
      {
        "id": "Goal.outcomeCode",
        "path": "Goal.outcomeCode",
        "max": "0"
      },
      {
        "id": "Goal.outcomeReference",
        "path": "Goal.outcomeReference",
        "max": "0"
      }
    ]
  }
}