{
  "resourceType": "StructureDefinition",
  "id": "goal-acceptance",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pc"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/goal-acceptance",
  "name": "acceptance",
  "title": "Goal acceptance",
  "status": "draft",
  "date": "2014-12-07",
  "publisher": "Health Level Seven, Inc. - FHIR WG",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/special/committees/fhir"
        }
      ]
    }
  ],
  "description": "Information about the acceptance and relative priority assigned to the goal by the patient, practitioners and other stake-holders.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Goal"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Individual acceptance of goal",
        "definition": "Information about the acceptance and relative priority assigned to the goal by the patient, practitioners and other stake-holders.",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Extension.extension:individual",
        "path": "Extension.extension",
        "sliceName": "individual",
        "short": "Individual whose acceptance is reflected",
        "definition": "The person whose acceptance/priority is being reflected.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:individual.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:individual.url",
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "individual"
      },
      {
        "id": "Extension.extension:individual.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ]
      },
      {
        "id": "Extension.extension:status",
        "path": "Extension.extension",
        "sliceName": "status",
        "short": "agree | disagree | pending",
        "definition": "Indicates whether the specified individual has accepted the goal or not.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:status.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:status.url",
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "status"
      },
      {
        "id": "Extension.extension:status.valueCode",
        "path": "Extension.extension.valueCode",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "GoalAcceptanceStatus"
            }
          ],
          "strength": "required",
          "description": "Codes indicating whether the goal has been accepted by a stakeholder",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/goal-acceptance-status"
          }
        }
      },
      {
        "id": "Extension.extension:priority",
        "path": "Extension.extension",
        "sliceName": "priority",
        "short": "Priority of goal for individual",
        "definition": "Indicates the relative priority assigned to the resource by the stakeholder.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:priority.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:priority.url",
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "priority"
      },
      {
        "id": "Extension.extension:priority.valueCodeableConcept",
        "path": "Extension.extension.valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "GoalAcceptancePriority"
            }
          ],
          "strength": "example",
          "description": "Codes indicating the relative priority assigned to a goal by a stakeholder",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/goal-priority"
          }
        }
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/goal-acceptance"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "min": 0,
        "max": "0"
      }
    ]
  }
}