<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MotherChildVitalsProfile" />
  <url value="http://example.org/fhir/StructureDefinition/MotherChildVitalsProfile" />
  <name value="MotherChildVitalsProfile" />
  <title value="Mother and Child Combined Vital Signs" />
  <status value="active" />
  <date value="2025-05-28" />
  <publisher value="Ministry of Health - Nepal" />
  <description value="A profile for capturing vital signs of both mother and child in a single observation record, using slicing on component." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.status">
      <path value="Observation.status" />
      <fixedCode value="final" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="vital-signs" />
          <display value="Vital Signs" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="Mother and Child Combined Vitals" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="code.text" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component:motherWeight">
      <path value="Observation.component" />
      <sliceName value="motherWeight" />
      <short value="Mother - Body Weight" />
      <patternCodeableConcept>
        <text value="Mother - Body Weight" />
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:motherBMI">
      <path value="Observation.component" />
      <sliceName value="motherBMI" />
      <short value="Mother - BMI" />
      <patternCodeableConcept>
        <text value="Mother - BMI" />
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:childWeight">
      <path value="Observation.component" />
      <sliceName value="childWeight" />
      <short value="Child - Body Weight" />
      <patternCodeableConcept>
        <text value="Child - Body Weight" />
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:childMUAC">
      <path value="Observation.component" />
      <sliceName value="childMUAC" />
      <short value="Child - MUAC" />
      <patternCodeableConcept>
        <text value="Child - MUAC" />
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:childAbCircumference">
      <path value="Observation.component" />
      <sliceName value="childAbCircumference" />
      <short value="Child - Abdominal Circumference" />
      <patternCodeableConcept>
        <text value="Child - Abdominal Circumference" />
      </patternCodeableConcept>
    </element>
  </differential>
</StructureDefinition>