I want to implement some business logic rules on FHIR resources and I want to work with RESTFUL API methods.
An example: I've a ServiceRequest
resource with a status, I want to prevent change of status depends of the actual value
Suppose if ServiceRequest
has status completed
I don't want to change with status draft
To manage this scenario, I must implement my custom method or exists a standard bahaviour on FHIR to accomplish this?
Yep, you'd implement this with a custom method.