{
  "resourceType": "StructureDefinition",
  "id": "message-header-patient-query-resp-msh-v1-0-8",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-10-01T12:47:33.968+00:00"
  },
  "url": "http://spms.min-saude.pt/fhir/iop/profiles/patient-query-resp-msh-v1-0-8",
  "name": "message-header-patient-query-resp-msh-v1-0-8",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MessageHeader",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MessageHeader",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "MessageHeader.id",
        "path": "MessageHeader.id",
        "min": 1
      },
      {
        "id": "MessageHeader.meta",
        "path": "MessageHeader.meta",
        "min": 1
      },
      {
        "id": "MessageHeader.meta.lastUpdated",
        "path": "MessageHeader.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "MessageHeader.meta.profile",
        "path": "MessageHeader.meta.profile",
        "min": 1,
        "fixedUri": "http://spms.min-saude.pt/fhir/iop/profiles/patient-query-resp-msh-v1-0-8"
      },
      {
        "id": "MessageHeader.event.system",
        "path": "MessageHeader.event.system",
        "fixedUri": "http://spms.min-saude.pt/iop/events"
      },
      {
        "id": "MessageHeader.event.code",
        "path": "MessageHeader.event.code",
        "fixedCode": "10120"
      },
      {
        "id": "MessageHeader.event.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MessageHeader.event.display",
        "fixedString": "PATIENT_QUERY"
      },
      {
        "id": "MessageHeader.destination",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "MessageDestination"
          }
        ],
        "path": "MessageHeader.destination",
        "min": 1
      },
      {
        "id": "MessageHeader.destination.name",
        "path": "MessageHeader.destination.name",
        "min": 1
      },
      {
        "id": "MessageHeader.receiver",
        "path": "MessageHeader.receiver",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/iop/StructureDefinition/organization-patient-query-v1-0-8",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "MessageHeader.sender",
        "path": "MessageHeader.sender",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/iop/StructureDefinition/organization-patient-query-v1-0-8",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "MessageHeader.enterer",
        "path": "MessageHeader.enterer",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/iop/StructureDefinition/practitioner-patient-query-v1-0-8",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "MessageHeader.source.name",
        "path": "MessageHeader.source.name",
        "min": 1,
        "fixedString": "RNU"
      },
      {
        "id": "MessageHeader.response",
        "path": "MessageHeader.response",
        "min": 1
      },
      {
        "id": "MessageHeader.response.details",
        "path": "MessageHeader.response.details",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/iop/StructureDefinition/operation-outcome-patient-query-v1-0-8",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "MessageHeader.focus",
        "path": "MessageHeader.focus",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/iop/StructureDefinition/bundle-patient-query-v1-0-8",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      }
    ]
  }
}