nhsconnect / gpconnect-demonstrator

GP Connect demonstrator is a reference implementation of a GP Connect providing system and a consumer system demonstration

Home Page:https://orange.testlab.nhs.uk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performer and recorder must not have references to PractitionerRole

SimonFarrowNHS opened this issue · comments

Issue raised by a supplier Observation performer was returning references to PractitionerRole instead of Org or Practitioner.
Also observed in MedicationRequest recorder which must be Practitioner.

This leaves PractitionerRole which is an optional element as an unreferenced entity but which must itself reference a valid Practitioner.

Had to add a reference count for the Role when consultations or problems are selected.