{
  "resourceType": "StructureDefinition",
  "id": "bb767e79-76fc-40f6-96f9-d345bd9cac8a",
  "meta": {
    "lastUpdated": "2023-03-14T08:36:14.603616+00:00"
  },
  "url": "https://simplifier.net/winningtest/therapy-service-request-profile",
  "name": "TherapyServiceRequest",
  "title": "治疗服务申请",
  "status": "draft",
  "date": "2023-03-14T08:36:29.4691369+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "quick",
      "uri": "http://siframework.org/cqf",
      "name": "Quality Improvement and Clinical Knowledge (QUICK)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "https://simplifier.net/winningtest/service-request-profile",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.extension",
        "path": "ServiceRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "ServiceRequest.extension:charity",
        "path": "ServiceRequest.extension",
        "sliceName": "charity",
        "short": "慈善标志",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-charity"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.extension:rehabilitationTherapyDosage",
        "path": "ServiceRequest.extension",
        "sliceName": "rehabilitationTherapyDosage",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-rehabilitation-therapy-dosage"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "ServiceRequest.extension:quantityPerTime",
        "path": "ServiceRequest.extension",
        "sliceName": "quantityPerTime",
        "short": "每次治疗的数量",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-quantity"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "ServiceRequest.category:serviceType",
        "path": "ServiceRequest.category",
        "sliceName": "serviceType",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "urn:oid:1.2.156.112604.1.2.558",
              "code": "urn:oid:1.2.156.112604.1.2.558.30",
              "display": "一般治疗"
            }
          ]
        }
      },
      {
        "id": "ServiceRequest.category:orderType",
        "path": "ServiceRequest.category",
        "sliceName": "orderType",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "urn:oid:1.2.156.112604.1.2.1051",
              "code": "urn:oid:1.2.156.112604.1.2.1051.6",
              "display": "治疗医嘱"
            }
          ]
        }
      },
      {
        "id": "ServiceRequest.orderDetail",
        "path": "ServiceRequest.orderDetail",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "ServiceRequest.orderDetail:therapyMethod",
        "path": "ServiceRequest.orderDetail",
        "sliceName": "therapyMethod",
        "short": "治疗方法",
        "max": "1",
        "binding": {
          "strength": "preferred",
          "description": "治疗方法代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.476"
        }
      },
      {
        "id": "ServiceRequest.orderDetail:therapyDosage",
        "path": "ServiceRequest.orderDetail",
        "sliceName": "therapyDosage",
        "short": "治疗剂量",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "治疗剂量代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.106099"
        }
      },
      {
        "id": "ServiceRequest.quantity[x]",
        "path": "ServiceRequest.quantity[x]",
        "short": "开立服务数量"
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "type": [
          {
            "code": "Timing"
          }
        ]
      },
      {
        "id": "ServiceRequest.occurrence[x].event",
        "path": "ServiceRequest.occurrence[x].event",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.bounds[x]",
        "path": "ServiceRequest.occurrence[x].repeat.bounds[x]",
        "short": "时长（天数）",
        "type": [
          {
            "code": "Duration"
          }
        ]
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.count",
        "path": "ServiceRequest.occurrence[x].repeat.count",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.countMax",
        "path": "ServiceRequest.occurrence[x].repeat.countMax",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.durationMax",
        "path": "ServiceRequest.occurrence[x].repeat.durationMax",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.durationUnit",
        "path": "ServiceRequest.occurrence[x].repeat.durationUnit",
        "fixedCode": "d"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.frequency",
        "path": "ServiceRequest.occurrence[x].repeat.frequency",
        "short": "重复次数"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.frequencyMax",
        "path": "ServiceRequest.occurrence[x].repeat.frequencyMax",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.period",
        "path": "ServiceRequest.occurrence[x].repeat.period",
        "fixedDecimal": 1
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.periodMax",
        "path": "ServiceRequest.occurrence[x].repeat.periodMax",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.periodUnit",
        "path": "ServiceRequest.occurrence[x].repeat.periodUnit",
        "fixedCode": "d"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.dayOfWeek",
        "path": "ServiceRequest.occurrence[x].repeat.dayOfWeek",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.timeOfDay",
        "path": "ServiceRequest.occurrence[x].repeat.timeOfDay",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.when",
        "path": "ServiceRequest.occurrence[x].repeat.when",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x].repeat.offset",
        "path": "ServiceRequest.occurrence[x].repeat.offset",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite",
        "path": "ServiceRequest.bodySite",
        "short": "治疗部位"
      }
    ]
  }
}