FHIR Chat · CareTeam constraint ctm-1 · implementers

Stream: implementers

Topic: CareTeam constraint ctm-1


view this post on Zulip Anand Mohan Tumuluri (Jan 16 2018 at 21:06):

The validator from STU3 seems to fail for the below CareTeam resource even though member is of Practitioner type.

*FAILURE* validating careteam.json:  error:1 warn:0 info:0
 Error @ CareTeam.participant (line 31, col6) : CareTeam.participant.onBehalfOf can only be populated when CareTeam.participant.member is a Practitioner [onBehalfOf.exists() implies (member.resolve() is Practitioner)]
{
  "resourceType": "CareTeam",
  "identifier": [
    {
      "use": "usual",
      "system": "http://www.acme.org/careteam",
      "value": "1000095520141302"
    }
  ],
  "status": "inactive",
  "category": [
    {
      "coding": [
        {
          "system": "http://hl7.org/fhir/care-team-category",
          "code": "episode",
          "display": "episode"
        }
      ]
    }
  ],
  "name": "ejlqkabtcrs",
  "subject": {
    "reference": "Group/0c89ebbb-eae3-411b-9b38-3784bf995ce9"
  },
  "period": {
    "start": "2010-12-05T06:27:57Z",
    "end": "2013-07-13T20:29:47Z"
  },
  "participant": [
    {
      "role": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "446050000",
            "display": "PCP - Primary care physician"
          }
        ]
      },
      "member": {
        "reference": "Practitioner/496073db-c7da-47aa-bedf-4f4e20c3dc09"
      },
      "onBehalfOf": {
        "reference": "Organization/34a65c1d-0d1e-4646-88ec-ddda84c98fc8"
      },
      "period": {
        "start": "2011-10-09T04:57:38Z",
        "end": "2015-07-28T02:35:41Z"
      }
    }
  ],
  "reasonCode": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "1469007",
          "display": "1469007"
        }
      ]
    }
  ],
  "managingOrganization": [
    {
      "reference": "Organization/34a65c1d-0d1e-4646-88ec-ddda84c98fc8"
    }
  ],
  "note": [
    {
      "time": "1973-12-04T21:55:23Z",
      "text": "iyoroapbb",
      "authorString": "dhcsqaxbyzalf"
    }
  ]
}

view this post on Zulip Anand Mohan Tumuluri (Feb 09 2018 at 02:24):

Help appreciated, Am I wrong in my understanding of this constraint?

view this post on Zulip Lloyd McKenzie (Feb 09 2018 at 02:46):

Have you tested using the most recent validator? You should always use the validator from build.fhir.org regardless of what specification version you're validating. (And sorry for no response to your original post)


Last updated: Apr 12 2022 at 19:14 UTC