FHIR Chat · CareTeam validation · hapi

Stream: hapi

Topic: CareTeam validation


view this post on Zulip Bünyamin Sarıgül (Nov 08 2017 at 12:20):

Hi, I get these error when I try to post a CareTeam:

CareTeam.participant.onBehalfOf can only be populated when CareTeam.participant.member is a Practitioner [onBehalfOf.exists() implies (member.resolve() is Practitioner)]

The participant is a Practitioner already. Here is the participants of my resource:

   "participant":[
      {
         "role":{
            "coding":[
               {
                  "system":"http://hl7.org/fhir/ValueSet/participant-role",
                  "code":"158965000",
                  "display":"Medical practitioner"
               }
            ]
         },
         "member":{
            "reference":"Practitioner/ea1465c6-68d2-4262-a86b-2520bb056e64",
            "display":"Helene MM"
         },
         "onBehalfOf":{
            "reference":"Organization/or-3-a",
            "display":"Östersund Hospital, Dietitian Clinic"
         }
      }
   ]

Is it a bug of the HAPI validator? I can't find any problem in my resource.


Last updated: Apr 12 2022 at 19:14 UTC