Manage Documents
se the Manage Documents screen to add or edit visit-related documents for a completed appointment.
The Doctor App opens this screen from the Appointment Details page or from the Visit Took Place workflow.
The screen enforces document rules and returns control to the appointment workspace after confirmation.
This screen includes:
- Support for PDF, JPG, and PNG files.
- A document type selector with values such as prescriptions, medical reports, and referrals.
- A text field for the document name.
- Controls to Add Documents, Update, and Remove.
- Validation rules that prevent confirmation when required files or fields are missing.
- Visibility rules based on user role and document type.
- Inline feedback for upload failures or missing values.
- Integration with the Visit Took Place workflow and the Documents tab in Appointment Details.
Workflows
Add Documents
- On the Appointment Details screen, select the Documents tab. Or, on the Visit Took Place screen, select Attach Documents.
- In the Manage Documents popup, choose a value in Document type.
- (Optional) Enter a document name.
- Select one or more files in PDF, JPG, or PNG format.
- Select Add Documents.
- If a required value is missing, the app highlights the field and blocks submission.
Edit or Remove a Document
- In the Documents list, select Edit next to a document entry.
- Update the document type or document name.
- Select Update to apply the change.
- To remove a document, select Remove.
Finalize Visit Took Place
- Confirm that all required medical documents exist in the visit summary.
- In the Visit Took Place workflow, select Save & Report Visit Took Place.
- The app validates document rules and returns to the Appointment Details screen with updated records.
Validations
These scenarios describe how the app validates the Manage Documents screen and what the integrator can expect.
| Scenario | App Behavior | SDK Output | Example |
|---|---|---|---|
| The doctor selects Add Documents with no file attached. | The app blocks submission, highlights the file control, and displays an error message. | Validation error in the update set; no change to the document list. | — |
| The doctor selects a document type that requires at least one file (for example, medical-report) and no file exists. | The app prevents exit from the popup until the requirement is met. | Validation error that targets the document group. | — |
| The file format is not PDF, JPG, or PNG. | The app rejects the file and displays inline feedback. | Validation error for unsupported file type. | — |
| Network or storage error occurs during upload. | The app displays an error and keeps the popup open with existing values. | Error in the update set; last valid document list remains. | — |
Actions
These scenarios describe how the app responds to actions on the Manage Documents screen and what the SDK returns.
Endpoint Resources
Present Document
PUT
/profile/appointments/{appointment-id}/summary/documents
Produces the Manage Documents popup for the specified appointment.
The response body includes:
- Document type selector.
- Optional document name input.
- File upload control for medical documents.
UI Element Types
| Level | Reference | Type | Value | Placement |
|---|---|---|---|---|
| 1 | — | Edit | The header text and close button is the parts of Cover | |
| 1 | discount-upload | Upload | The header text and close button is the parts of Cover | |
| 1 | discount-type | Combo | Document type | |
| 1 | document-notes | Edit | Name | |
| 1 | create | Button | Add Documents | |
| 1 | update | Button | Update | |
| 1 | remove | Ghost | Remove |
Add Document
PATCH
/profile/appointments/{appointment-id}/summary/documents
Returns an update set that adds a medical document to the appointment record.
Update Document
PATCH
/profile/appointments/{appointment-id}/summary/documents/{document-id}/update
Returns an update set that changes document metadata or file content for the specified document.
Delete Document
PATCH
/profile/appointments/{appointment-id}/summary/documents/{document-id}/delete
Returns an update set that removes the specified medical document from the appointment record.



