{
  "resourceType" : "Bundle",
  "id" : "21c0555e-37e9-463f-8844-bd887d4dab55",
  "meta" : {
    "profile" : [
      "http://aaa.bb.com/fhir/StructureDefinition/MessageBundle"
    ]
  },
  "type" : "message",
  "entry" : [
    {
      "fullUrl" : "http://aaa.bb.com/fhir/MessageHeader/1a0a102c-d55f-497a-8499-e8311513a6f0",
      "resource" : {
        "resourceType" : "MessageHeader",
        "meta" : {
          "lastUpdated" : "2019-02-13T12:12:52.273+00:00"
        },
        "id" : "1a0a102c-d55f-497a-84119-e8311513a6f0",
        "destination" : [
          {
            "name" : "RNA",
            "endpoint" : "COMP/RNA"
          }
        ],
        "receiver" : {
          "reference" : "Organization/COMP",
          "display" : "COMPANY"
        },
        "sender" : {
          "reference" : "Organization/3333333",
          "display" : "DEV"
        },
        "timestamp" : "2019-02-13T12:12:52.292+00:00",
        "enterer" : {
          "identifier" : {
            "type" : {
              "coding" : [
                {
                  "system" : "http://hl7.org/fhir/v2/0203",
                  "code" : "MD",
                  "display" : "Medical License number"
                }
              ]
            },
            "system" : "https://www.oooooooo.pt",
            "value" : "123456"
          },
          "display" : "Person A"
        },
        "source" : {
          "name" : "REPOS",
          "endpoint" : "COMP/REPOS"
        },
        "focus" : [
          {
            "reference" : "Parameters/1efb9dbc-2fb2-11e9-b210-d663bd873d93"
          }
        ]
      }
    },
    {
      "fullUrl" : "http://aaa.bb.com/fhir/Parameters/1efb9dbc-2fb2-11e9-b210-d663bd873d93",
      "resource" : {
        "resourceType" : "Parameters",
        "meta" : {
          "lastUpdated" : "2019-02-13T12:12:52.273+00:00"
        },
        "id" : "1efb9dbc-2fb2-11e9-b210-d663bd873d93",
        "parameter" : [
          {
            "name" : "pesquisaDetalhe",
            "valueCode" : "detailed"
          },
          {
            "name" : "ListaDocumentoIdentificacao",
            "part" : [
              {
                "name" : "NumeroNacionalUtente",
                "valueIdentifier" : {
                  "type" : {
                    "coding" : [
                      {
                        "system" : "http://hl7.org/fhir/v2/0203",
                        "code" : "PI",
                        "display" : "Patient internal Identifier"
                      }
                    ],
                    "text" : "RNA"
                  },
                  "system" : "https://www.aa.bb.com/primarycareproviders/<id_local>/identifie/patient-id",
                  "value" : "123456789"
                }
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl" : "http://aaa.bb.com/fhir/Organization/3333333",
      "resource" : {
        "resourceType" : "Organization",
        "meta" : {
          "lastUpdated" : "2019-02-13T12:12:52.273+00:00"
        },
        "id" : "3333333",
        "identifier" : [
          {
            "type" : [
              {
                "coding" : [
                  {
                    "system" : "http://lista-das-entidades-responsaveis",
                    "code" : "ER",
                    "display" : "<Nome da Entidade Responsável>"
                  }
                ]
              }
            ]
          }
        ],
        "type" : [
          {
            "coding" : [
              {
                "system" : "http://hl7.org/fhir/organization-type",
                "code" : "prov",
                "display" : "Healthcare Provider"
              }
            ]
          }
        ],
        "name" : "H. D. LOCAL"
      }
    },
    {
      "fullUrl" : "http://aaa.bb.com/fhir/Organization/COMP",
      "resource" : {
        "resourceType" : "Organization",
        "meta" : {
          "lastUpdated" : "2019-02-13T12:12:52.273+00:00"
        },
        "id" : "COMP",
        "identifier" : [
          {
            "type" : [
              {
                "coding" : [
                  {
                    "system" : "http://lista-das-entidades-responsaveis",
                    "code" : "ER",
                    "display" : "<Nome da Entidade Responsável>"
                  }
                ]
              }
            ]
          }
        ],
        "type" : [
          {
            "coding" : [
              {
                "system" : "http://hl7.org/fhir/organization-type",
                "code" : "prov",
                "display" : "Healthcare Provider"
              }
            ]
          }
        ],
        "name" : "H. D. LOCAL"
      }
    }
  ]
}