Hi @product1,
The error you are receiving is not related to legitimate relationships (you have a valid relationship) but rather due to the state of the referral not being appropriate to record a triage outcome. i.e. it is not in a state to be reviewed.
The documentation for the API (Record triage outcome (A028, FHIR STU3)) includes detail of how to determine if the referral is in the appropriate state in the âPre-requisitesâ section:
You need to use Retrieve referral worklist (A008) to retrieve the contents of the âReferrals For Reviewâ worklist. Record triage outcome (A028) can only be used for referrals sent into triage services, and not the referrals booked into bookable services.
You need to use Retrieve referral worklist (A008) to retrieve the contents of the âAppointment Slot Issuesâ worklist. This provides a list of referrals that have been deferred into directly bookable services.
- Referrals from this worklist may already have been reviewed or may not have any referral clinical information associated, in which case Record triage outcome (A028) cannot be used.
- Record triage outcome (A028) can only be used for those referrals, on the âAppointment Slot Issuesâ worklist, which are pending review.
- As such, you need to use Available actions for user (A029) to determine if Record triage outcome (A028) is a permissible action.
Please also see the related use case documentation: Receive and review referrals as a service provider.
@zubeir.tai FYI.
Regards,
Adam.