Stream: implementers
Topic: Bundle with Profiles
 Marcelo caldas (Jan 21 2019 at 17:56):
Hello, 
I've been working on HAPI server and Bundles. We are posting a bundle where we have some profiles defined for resources, but when I query back the bundle after creating (POST) it - all my Meta information is missing. 
Any ideas why?
Here's a snippet of my post:
...
 <entry>
        <fullUrl value="urn:uuid:538791da-3555-460e-9e7f-76d25988a546"/>
        <resource>
            <PractitionerRole xmlns="http://hl7.org/fhir">
                <!-- ReferralInitiator -->
                <id value="538791da-3555-460e-9e7f-76d25988a546"/>
                <meta>
                    <profile
                        value="http://hl7.org/fhir/us/bser/StructureDefinition/ReferralInitiatorPractitionerRole"
                    />
                </meta>
...
And here's the same bundle snipped after querying it out of HAPI:
(No Meta!)
...
{
      "fullUrl": "urn:uuid:538791da-3555-460e-9e7f-76d25988a546",
      "resource": {
        "resourceType": "PractitionerRole",
        "practitioner": {
          "reference": "urn:uuid:598af951-66e4-4910-a964-7e41533b183c"
        },
        "organization": {
          "reference": "urn:uuid:e6d1abc8-595f-41ab-a6dc-13a034d3fac7"
        },
        "code": [
          {
            "coding": [
              {
                "system": "http://hl7.org/fhir/practitioner-role",
                "code": "doctor",
                "display": "Doctor"
              }
            ]
          }
        ],
        "location": [
          {
            "reference": "urn:uuid:25fa3dbc-dc9e-42c2-b681-0352765645af",
            "_reference": {
              "fhir_comments": [
                " urn:uuid:ServiceDeliveryLocationInitiator"
              ]
            }
          }
        ]
      }
Thanks,
Last updated: Apr 12 2022 at 19:14 UTC