{
  "resourceType": "StructureDefinition",
  "id": "2dbc6476-30be-468b-93a6-c67155b51066",
  "meta": {
    "lastUpdated": "2022-03-01T08:24:35.545+00:00"
  },
  "url": "https://simplifier.net/winningtest/execution-plan-profile",
  "name": "ExecutionPlan",
  "title": "Execution Plan",
  "status": "draft",
  "date": "2022-03-01T08:23:35.2623332Z",
  "description": "执行计划",
  "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": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.extension",
        "path": "Task.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Task.extension:executionPhase",
        "path": "Task.extension",
        "sliceName": "executionPhase",
        "short": "首末次阶段",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-execution-phase"
            ]
          }
        ]
      },
      {
        "id": "Task.extension:abnormalOperation",
        "path": "Task.extension",
        "sliceName": "abnormalOperation",
        "short": "异常操作",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-abnormal-operation"
            ]
          }
        ]
      },
      {
        "id": "Task.instantiatesCanonical",
        "path": "Task.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "Task.instantiatesUri",
        "path": "Task.instantiatesUri",
        "max": "0"
      },
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "short": "医嘱",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
              "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
              "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
            ]
          }
        ]
      },
      {
        "id": "Task.groupIdentifier",
        "path": "Task.groupIdentifier",
        "short": "执行单id"
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "definition": "已生成：requested\r\n已申请：accepted \r\n执行中：in-progress\r\n已暂停：on-hold\r\n已执行：completed\r\n取消执行：cancelled"
      },
      {
        "id": "Task.businessStatus",
        "path": "Task.businessStatus",
        "max": "0"
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "fixedCode": "plan"
      },
      {
        "id": "Task.priority",
        "path": "Task.priority",
        "max": "0"
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "short": "变更操作类型",
        "definition": "approve：状态变为执行中（in-progress）\r\nfulfill：状态变为已申请 (accepted)\r\nabort：回滚状态为当前Task状态\r\nsuspend：状态变为已暂停(on-hold）\r\nresume：状态由已暂停变为执行中(in-progress）"
      },
      {
        "id": "Task.focus",
        "path": "Task.focus",
        "short": "执行计划详情"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "max": "0"
      },
      {
        "id": "Task.encounter",
        "path": "Task.encounter",
        "max": "0"
      },
      {
        "id": "Task.executionPeriod",
        "path": "Task.executionPeriod",
        "short": "执行时间"
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "short": "申请时间"
      },
      {
        "id": "Task.lastModified",
        "path": "Task.lastModified",
        "short": "上次操作时间"
      },
      {
        "id": "Task.requester",
        "path": "Task.requester",
        "short": "申请人"
      },
      {
        "id": "Task.performerType",
        "path": "Task.performerType",
        "max": "0"
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "short": "执行人"
      },
      {
        "id": "Task.location",
        "path": "Task.location",
        "max": "0"
      },
      {
        "id": "Task.reasonCode",
        "path": "Task.reasonCode",
        "max": "0"
      },
      {
        "id": "Task.reasonReference",
        "path": "Task.reasonReference",
        "max": "0"
      },
      {
        "id": "Task.insurance",
        "path": "Task.insurance",
        "max": "0"
      },
      {
        "id": "Task.note",
        "path": "Task.note",
        "short": "备注",
        "max": "1"
      },
      {
        "id": "Task.relevantHistory",
        "path": "Task.relevantHistory",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/execution-plan-relevant-history-profile"
            ]
          }
        ]
      },
      {
        "id": "Task.restriction.period",
        "path": "Task.restriction.period",
        "short": "护士安排的执行时间"
      },
      {
        "id": "Task.input",
        "path": "Task.input",
        "short": "任务执行时使用的信息",
        "max": "1"
      },
      {
        "id": "Task.output",
        "path": "Task.output",
        "short": "执行结果"
      },
      {
        "id": "Task.output.type",
        "path": "Task.output.type",
        "definition": "当表示执行计划结果时，type.text=执行计划结果"
      },
      {
        "id": "Task.output.value[x]",
        "path": "Task.output.value[x]",
        "type": [
          {
            "code": "Duration"
          },
          {
            "code": "Reference"
          }
        ]
      }
    ]
  }
}