{
  "resourceType": "StructureDefinition",
  "url": "http://hl7.org/fhir/StructureDefinition/ApgarScore",
  "name": "ApgarScore",
  "status": "draft",
  "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": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.code.coding:loincCode",
        "path": "Observation.code.coding",
        "sliceName": "loincCode",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "ApgarScore-code-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-code-loinc"
        }
      },
      {
        "id": "Observation.code.coding:snomedCode",
        "path": "Observation.code.coding",
        "sliceName": "snomedCode",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "ApgarScore-code-snomed",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-code-snomed"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:colourScore",
        "path": "Observation.component",
        "sliceName": "colourScore",
        "max": "1"
      },
      {
        "id": "Observation.component:colourScore.code",
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "description": "ApgarScore-colour-code-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-colour-code-loinc"
        }
      },
      {
        "id": "Observation.component:colourScore.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "ApgarScore-colour-value-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-colour-value-loinc"
        }
      },
      {
        "id": "Observation.component:heartRateScore",
        "path": "Observation.component",
        "sliceName": "heartRateScore",
        "max": "1"
      },
      {
        "id": "Observation.component:heartRateScore.code.coding",
        "path": "Observation.component.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:heartRateScore.code.coding:loincCode",
        "path": "Observation.component.code.coding",
        "sliceName": "loincCode",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "ApgarScore-heartRate-code-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-heartRate-code-loinc"
        }
      },
      {
        "id": "Observation.component:heartRateScore.code.coding:snomedCode",
        "path": "Observation.component.code.coding",
        "sliceName": "snomedCode",
        "max": "1"
      },
      {
        "id": "Observation.component:heartRateScore.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "ApgarScore-heartRate-value-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-heartRate-value-loinc"
        }
      },
      {
        "id": "Observation.component:muscleToneScore",
        "path": "Observation.component",
        "sliceName": "muscleToneScore",
        "max": "1"
      },
      {
        "id": "Observation.component:muscleToneScore.code",
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "description": "ApgarScore-muscleTone-code-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-muscleTone-code-loinc"
        }
      },
      {
        "id": "Observation.component:muscleToneScore.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "ApgarScore-muscleTone-value-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-muscleTone-value-loinc"
        }
      },
      {
        "id": "Observation.component:respiratoryEffortScore",
        "path": "Observation.component",
        "sliceName": "respiratoryEffortScore",
        "max": "1"
      },
      {
        "id": "Observation.component:respiratoryEffortScore.code",
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "description": "ApgarScore-respiratoryEffort-code-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-respiratoryEffort-code-loinc"
        }
      },
      {
        "id": "Observation.component:respiratoryEffortScore.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "ApgarScore-respiratoryEffort-value-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-respiratoryEffort-value-loinc"
        }
      },
      {
        "id": "Observation.component:reflexIrratabilityScore",
        "path": "Observation.component",
        "sliceName": "reflexIrratabilityScore",
        "max": "1"
      },
      {
        "id": "Observation.component:reflexIrratabilityScore.code",
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "description": "ApgarScore-reflexIrratability-code-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-reflexIrratability-code-loinc"
        }
      },
      {
        "id": "Observation.component:reflexIrratabilityScore.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "ApgarScore-reflexIrratabilityScore-value-loinc",
          "valueSet": "http://hl7.org/fhir/ValueSet/ApgarScore-reflexIrratabilityScore-value-loinc"
        }
      }
    ]
  }
}