<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://example.org/fhir/StructureDefinition/MicrobiologyLaboratoryMeasure" />
  <name value="MicrobiologyLaboratoryMeasure" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="objimpl" />
    <uri value="http://hl7.org/fhir/object-implementation" />
    <name value="Object Implementation Information" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Measure" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Measure" />
  <derivation value="constraint" />
  <differential>
    <element id="Measure">
      <path value="Measure" />
      <constraint>
        <key value="mea-1" />
        <severity value="error" />
        <human value="Either scoring or compositeScoring element has to be present" />
        <expression value="not(scoring.exists()) and not(compositeScoring.exists())" />
        <xpath value="not(exists(f:scoring/@value)) and not(exists(f:scoring/@value))" />
      </constraint>
    </element>
    <element id="Measure.url">
      <path value="Measure.url" />
      <min value="1" />
    </element>
    <element id="Measure.title">
      <path value="Measure.title" />
      <min value="1" />
    </element>
    <element id="Measure.status">
      <path value="Measure.status" />
      <fixedCode value="active" />
    </element>
    <element id="Measure.subject[x]">
      <path value="Measure.subject[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://hl7.org/fhir/MicrobiologyLaboratory/StructureDefinition/MicrobiologyLaboratoryDiagnosticReport" />
        <targetProfile value="http://hl7.org/fhir/MicrobiologyLaboratory/StructureDefinition/MicrobiologyLaboratoryPatient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Measure.description">
      <path value="Measure.description" />
      <min value="1" />
    </element>
    <element id="Measure.scoring.coding">
      <path value="Measure.scoring.coding" />
      <min value="1" />
    </element>
    <element id="Measure.compositeScoring.coding">
      <path value="Measure.compositeScoring.coding" />
      <min value="1" />
    </element>
    <element id="Measure.type.coding">
      <path value="Measure.type.coding" />
      <min value="1" />
    </element>
    <element id="Measure.riskAdjustment">
      <path value="Measure.riskAdjustment" />
      <min value="1" />
    </element>
    <element id="Measure.rateAggregation">
      <path value="Measure.rateAggregation" />
      <min value="1" />
    </element>
    <element id="Measure.improvementNotation">
      <path value="Measure.improvementNotation" />
      <min value="1" />
    </element>
    <element id="Measure.group">
      <path value="Measure.group" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>