{
  "resourceType": "StructureDefinition",
  "id": "52a4b6e9-196b-4773-bd65-bb1164ba5d63",
  "meta": {
    "lastUpdated": "2023-05-25T03:27:17.977346+00:00"
  },
  "url": "https://simplifier.net/winningtest/blood-type-profile",
  "name": "BloodType",
  "title": "血型",
  "status": "draft",
  "date": "2023-05-25T03:27:25.3438472+00:00",
  "description": "ABO与Rh血型",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "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": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://simplifier.net/winningtest/laboratory-observation-profile",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "version": "2.72",
              "code": "882-1",
              "display": "ABO and Rh group [Type] in Blood"
            }
          ],
          "text": "ABO and Rh group [Type] in Blood"
        }
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "short": "ABO血型",
        "fixedCode": "14578-9"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "ABORh",
          "valueSet": "https://loinc.org/LL2972-9/"
        }
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "closed"
        },
        "min": 1,
        "max": "2"
      },
      {
        "id": "Observation.component:ABOGroup",
        "path": "Observation.component",
        "sliceName": "ABOGroup",
        "short": "ABO血型",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:ABOGroup.code",
        "path": "Observation.component.code",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "version": "2.72",
              "code": "883-9",
              "display": "ABO group [Type] in Blood"
            }
          ]
        }
      },
      {
        "id": "Observation.component:ABOGroup.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "ABO group",
          "valueSet": "https://loinc.org/LL2419-1/"
        }
      },
      {
        "id": "Observation.component:ABOGroup.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:ABOGroup.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:RhGroup",
        "path": "Observation.component",
        "sliceName": "RhGroup",
        "short": "Rh血型",
        "max": "1"
      },
      {
        "id": "Observation.component:RhGroup.code",
        "path": "Observation.component.code",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "version": "2.38",
              "code": "10331-7",
              "display": "Rh [Type] in Blood"
            }
          ]
        }
      },
      {
        "id": "Observation.component:RhGroup.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "Pos|Neg",
          "valueSet": "https://loinc.org/LL360-9/"
        }
      },
      {
        "id": "Observation.component:RhGroup.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:RhGroup.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      }
    ]
  }
}