{
  "resourceType": "StructureDefinition",
  "url": "https://simplifier.net/genomicsfhirprofiles/genomics-messagedefinition-1",
  "name": "Genomics-MessageDefinition-1",
  "status": "draft",
  "mapping": [
    {
      "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/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "objimpl",
      "uri": "http://hl7.org/fhir/object-implementation",
      "name": "Object Implementation Information"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MessageDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MessageDefinition",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "MessageDefinition.identifier",
        "path": "MessageDefinition.identifier",
        "max": "*"
      },
      {
        "id": "MessageDefinition.status",
        "path": "MessageDefinition.status",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "PublicationStatus"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[1].binding": "http://hl7.org/fhir/ValueSet/publication-status|4.0.0"
        }
      },
      {
        "id": "MessageDefinition.base",
        "path": "MessageDefinition.base",
        "type": [
          {
            "code": "Canonical",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "MessageDefinition.base"
          },
          {
            "identity": "v2",
            "map": "Varies by domain"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=DEFN].target"
          }
        ]
      },
      {
        "id": "MessageDefinition.parent",
        "path": "MessageDefinition.parent",
        "type": [
          {
            "code": "Canonical",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
          },
          {
            "code": "Canonical",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "MessageDefinition.parent"
          },
          {
            "identity": "v2",
            "map": "Varies by domain"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=DEFN].target"
          }
        ]
      },
      {
        "id": "MessageDefinition.replaces",
        "path": "MessageDefinition.replaces",
        "type": [
          {
            "code": "Canonical",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Request.replaces"
          },
          {
            "identity": "v2",
            "map": "Varies by domain"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=DEFN].target"
          }
        ]
      },
      {
        "id": "MessageDefinition.event",
        "path": "MessageDefinition.event",
        "type": [
          {
            "code": "Coding"
          },
          {
            "code": "uri",
            "profile": "http://hl7.org/fhir/StructureDefinition/uri"
          }
        ]
      },
      {
        "id": "MessageDefinition.category",
        "path": "MessageDefinition.category",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MessageSignificanceCategory"
            }
          ],
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[6].binding": "http://hl7.org/fhir/ValueSet/message-significance-category|4.0.0"
        }
      },
      {
        "id": "MessageDefinition.focus.code",
        "path": "MessageDefinition.focus.code",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ResourceType"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[7].binding": "http://hl7.org/fhir/ValueSet/resource-types|4.0.0"
        }
      },
      {
        "id": "MessageDefinition.focus.profile",
        "path": "MessageDefinition.focus.profile",
        "type": [
          {
            "code": "Canonical",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "MessageDefinition.focus.profile"
          },
          {
            "identity": "v2",
            "map": "Varies by domain"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=DEFN].target"
          }
        ]
      },
      {
        "id": "MessageDefinition.focus.min",
        "path": "MessageDefinition.focus.min",
        "min": 1
      },
      {
        "id": "MessageDefinition.responseRequired",
        "path": "MessageDefinition.responseRequired",
        "type": [
          {
            "code": "code",
            "profile": "http://hl7.org/fhir/StructureDefinition/code"
          }
        ]
      },
      {
        "id": "MessageDefinition.allowedResponse.message",
        "path": "MessageDefinition.allowedResponse.message",
        "type": [
          {
            "code": "Canonical",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "MessageDefinition.allowedResponse.Message"
          },
          {
            "identity": "v2",
            "map": "Varies by domain"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=DEFN].target"
          }
        ]
      }
    ]
  }
}