Details
-
Type:
Improvement
-
Status: In progress
-
Priority:
Major
-
Resolution: Unresolved
-
Affects versions: None
-
Fix versions: None
-
Components: SM - Platform Service Model
Description
Currently there are four operations to create an EHR, the difference between them are the parameters passed.
I would suggest to merge the four operations into one that can receive all the parameters and also does the correspondent validation and error reporting currently explained on each operation.
As a general design approach, I would prefer to have one operation per business goal (e.g. 'create EHR'), and handle all the parameters and internal rules there.
REF: https://specifications.openehr.org/releases/SM/latest/openehr_platform.html#_i_ehr_service_interface
I would suggest to merge the four operations into one that can receive all the parameters and also does the correspondent validation and error reporting currently explained on each operation.
As a general design approach, I would prefer to have one operation per business goal (e.g. 'create EHR'), and handle all the parameters and internal rules there.
REF: https://specifications.openehr.org/releases/SM/latest/openehr_platform.html#_i_ehr_service_interface