{
  "resourceType": "StructureDefinition",
  "id": "hr-PMIR-MessageHeader-internal",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">No human-readable text provided in this case.</div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Foundation.Other"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "not-classified"
    }
  ],
  "url": "http://fhir.cezih.hr/specifikacije/StructureDefinition/IHE.PMIR.MessageHeaderInternal",
  "version": "1.5.0",
  "name": "PMIRMessageHeaderInternal",
  "title": "Internal Patient Master Identity Registry MessageHeader",
  "status": "active",
  "description": "StructureDefinition for MessageHeader resource constraints in the Internal implementation of IHE PMIR Profile for sync of Patient data to FHIR server.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "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/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MessageHeader",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MessageHeader",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MessageHeader.event[x]",
        "path": "MessageHeader.event[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "type": [
          {
            "code": "uri"
          }
        ]
      },
      {
        "id": "MessageHeader.event[x]:eventUri",
        "path": "MessageHeader.event[x]",
        "sliceName": "eventUri",
        "min": 1,
        "type": [
          {
            "code": "uri"
          }
        ],
        "patternUri": "urn:ihe:iti:pmir:2019:patient-feed-internal"
      },
      {
        "id": "MessageHeader.destination",
        "path": "MessageHeader.destination",
        "min": 1
      },
      {
        "id": "MessageHeader.sender",
        "path": "MessageHeader.sender",
        "requirements": "Required if known",
        "mustSupport": true
      },
      {
        "id": "MessageHeader.enterer",
        "path": "MessageHeader.enterer",
        "requirements": "Required if known",
        "mustSupport": true
      },
      {
        "id": "MessageHeader.author",
        "path": "MessageHeader.author",
        "requirements": "Required if known",
        "mustSupport": true
      },
      {
        "id": "MessageHeader.responsible",
        "path": "MessageHeader.responsible",
        "requirements": "Required if known",
        "mustSupport": true
      },
      {
        "id": "MessageHeader.focus",
        "path": "MessageHeader.focus",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Bundle.History"
            ]
          }
        ]
      },
      {
        "id": "MessageHeader.definition",
        "path": "MessageHeader.definition",
        "patternCanonical": "https://profiles.ihe.net/ITI/PMIR/StructureDefintion/IHE.PMIR.MessageDefinition"
      }
    ]
  }
}