{
  "resourceType": "StructureDefinition",
  "id": "POWER2DM-PersonalValue",
  "meta": {
    "versionId": "3",
    "lastUpdated": "2016-11-14T11:12:06.731+00:00"
  },
  "url": "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_PersonalValue",
  "version": "0.1",
  "name": "POWER2DM_PersonalValue",
  "display": "POWER2DM_PersonalValue",
  "status": "draft",
  "publisher": "SRDC Corp.",
  "date": "2016-11-29T21:00:00+00:00",
  "description": "Profiling to represent a personal value identified by patient in his/her life in POWER2DM Care Program",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "constrainedType": "Observation",
  "abstract": false,
  "base": "http://hl7.org/fhir/StructureDefinition/Observation",
  "differential": {
    "element": [
      {
        "path": "Observation",
        "type": [
          {
            "code": "Observation"
          }
        ]
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "fixedCode": "final"
      },
      {
        "path": "Observation.code",
        "binding": {
          "strength": "preferred",
          "description": "Codes identifying type of observations in POWER2DM.",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-observations"
          }
        }
      },
      {
        "path": "Observation.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "path": "Observation.code.coding.code",
        "fixedCode": "31614008"
      },
      {
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Patient"
            ]
          }
        ]
      },
      {
        "path": "Observation.effectiveDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "path": "Observation.performer",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Patient"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Practitioner"
            ]
          }
        ]
      },
      {
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "path": "Observation.method",
        "max": "0"
      },
      {
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "path": "Observation.device",
        "max": "0"
      },
      {
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "path": "Observation.related",
        "max": "0"
      },
      {
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            "code.coding"
          ],
          "rules": "openAtEnd"
        }
      },
      {
        "path": "Observation.component",
        "name": "personal-value",
        "short": "Personal Value component",
        "definition": "The component to indicate the personal value",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "description": "Codes identifying names of personal value observations",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-personal-value-components"
          }
        }
      },
      {
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "path": "Observation.component.code.coding.code",
        "fixedCode": "31614008"
      },
      {
        "path": "Observation.component.valueCodeableConcept",
        "short": "Personal value identified by patient",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "The list of personal values in POWER2DM"
        }
      },
      {
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "path": "Observation.component",
        "name": "importance",
        "short": "Importance component",
        "definition": "The component indicating the importance of personal value",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "description": "Codes identifying names of personal value observations",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-personal-value-components"
          }
        }
      },
      {
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "path": "Observation.component.code.coding.code",
        "fixedCode": "247752005"
      },
      {
        "path": "Observation.component.valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "path": "Observation.component.referenceRange",
        "max": "1"
      },
      {
        "path": "Observation.component",
        "name": "contentment",
        "short": "Contentment component",
        "definition": "The component indicating the contentment of personal value",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "description": "Codes identifying names of personal value observations",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-personal-value-components"
          }
        }
      },
      {
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "path": "Observation.component.code.coding.code",
        "fixedCode": "406193000"
      },
      {
        "path": "Observation.component.valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "path": "Observation.component.referenceRange",
        "max": "1"
      }
    ]
  }
}