{
  "resourceType": "StructureDefinition",
  "id": "00142889-52d0-4f22-87cb-66022436591d",
  "meta": {
    "lastUpdated": "2021-06-25T02:57:27.029+00:00"
  },
  "url": "https://simplifier.net/winningtest/payment-notice-profile",
  "name": "PaymentNotice",
  "title": "Payment Notice",
  "status": "draft",
  "date": "2020-09-07T18:48:17.9467076+00:00",
  "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": "cdanetv4",
      "uri": "http://www.cda-adc.ca/en/services/cdanet/",
      "name": "Canadian Dental Association eclaims standard"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "PaymentNotice",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PaymentNotice",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PaymentNotice.identifier",
        "path": "PaymentNotice.identifier",
        "max": "0"
      },
      {
        "id": "PaymentNotice.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "PaymentNotice.status",
        "fixedCode": "active"
      },
      {
        "id": "PaymentNotice.request",
        "path": "PaymentNotice.request",
        "short": "已支付的对应请求资源",
        "definition": "这里对应的是处方或者申请单。",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
              "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
              "http://hl7.org/fhir/StructureDefinition/Appointment",
              "http://hl7.org/fhir/StructureDefinition/Invoice"
            ],
            "aggregation": [
              "contained",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "PaymentNotice.request.identifier",
        "path": "PaymentNotice.request.identifier",
        "short": "医嘱项标识或处方编号或申请单编号",
        "definition": "对应的是处方编号groupIdentifier或者申请单编号requisition（目前实际使用的是医嘱项标识，将来根据支付对象，应调整为处方编号或申请单编号）"
      },
      {
        "id": "PaymentNotice.response",
        "path": "PaymentNotice.response",
        "max": "0"
      },
      {
        "id": "PaymentNotice.provider",
        "path": "PaymentNotice.provider",
        "max": "0"
      },
      {
        "id": "PaymentNotice.payment",
        "path": "PaymentNotice.payment",
        "definition": "可以不填"
      },
      {
        "id": "PaymentNotice.payee",
        "path": "PaymentNotice.payee",
        "short": "收费操作员",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/practitioner-profile"
            ]
          }
        ]
      },
      {
        "id": "PaymentNotice.recipient",
        "path": "PaymentNotice.recipient",
        "definition": "可以不填"
      },
      {
        "id": "PaymentNotice.paymentStatus",
        "path": "PaymentNotice.paymentStatus",
        "short": "收费状态代码",
        "definition": "注意，此状态所使用的代码允许进行扩展(extensible)。当实际收费状态是未收费且已锁定时(LockFlag=True)，使用BeingPaid作为代码表示这一正在收费状态。今后，应将此状态添加进入收费状态代码术语中。",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "description": "收费状态代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.773"
        }
      },
      {
        "id": "PaymentNotice.paymentStatus.extension",
        "path": "PaymentNotice.paymentStatus.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "PaymentNotice.paymentStatus.extension:locked",
        "path": "PaymentNotice.paymentStatus.extension",
        "sliceName": "locked",
        "short": "锁定标志",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-locked"
            ]
          }
        ]
      },
      {
        "id": "PaymentNotice.paymentStatus.coding",
        "path": "PaymentNotice.paymentStatus.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "PaymentNotice.paymentStatus.coding:paymentStatus1",
        "path": "PaymentNotice.paymentStatus.coding",
        "sliceName": "paymentStatus1",
        "short": "收费状态",
        "max": "1",
        "binding": {
          "strength": "extensible",
          "description": "收费状态代码（1.0版）",
          "valueSet": "urn:oid:1.2.156.112604.1.2.773"
        }
      },
      {
        "id": "PaymentNotice.paymentStatus.coding:paymentStatus2",
        "path": "PaymentNotice.paymentStatus.coding",
        "sliceName": "paymentStatus2",
        "short": "收费状态",
        "max": "1",
        "binding": {
          "strength": "extensible",
          "description": "收费状态代码（2.0版）",
          "valueSet": "urn:oid:1.2.156.112604.1.2.734"
        }
      }
    ]
  }
}