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