updateExisting method: createComposition
Implemented changes:
…
Processing
Validation before createComposition task
Prechecks - Initial checks of request input data
Encounter Processing - Receiving and processing medical records (Encounter)
Employee Processing - Receiving and processing Employee record (Composition.author)
Division Processing - Receiving and processing Division record (Employee Division)
Legal Entity Processing - Receiving and processing Legal Entity record (Employee Legal Entity)
Subject Processing - Receiving and processing Subject record
Focus Processing - Receiving and processing Focus record
Use prefix from configuration instead of first 4 symbols: {{composition_type}}
_TITLE_PREFIX
(ex.NEWBORN_TITLE_PREFIX
). If prefix can't be get from chart-parameters: Return 500 errorgetSmsPhoneNumber - Receiving phone number for sending SMS about creation of composition
Saving the record of the Сomposition into database
Task status updating in DONE