Skip to main content

Visit Took Place


Use the Visit Took Place screen to complete appointments after a doctor finishes a visit.
This screen opens from Appointment Details and presents a wizard for visit notes, charges, and documents.


This screen includes:

  • Inndicator: Visit Summary, Charges, Documents.
    Step indicator and summary fields in Visit Took Place wizard
  • A memo field for diagnosis and treatment notes.
  • An optional control for a visit summary file.
  • A Continue button that becomes available after required fields meet validation rules.
  • Fields for additional charges and one discount per visit.
  • A document section with type selection, notes, and file controls.
  • Step controls that move between Visit Summary, Charges, and Documents

Workflow

  1. In Appointment Details, select Visit took place.
    Visit Took Place entry point in Appointment Details
  2. Review the prefilled patient and appointment details.
  3. In Visit Summary, enter diagnosis and treatment notes.
  4. Optionally, attach a visit summary document.
    See Document Details.
  5. In Charges, enter additional fees or one discount, according to fee rules.
  6. In Documents, attach medical files with valid types and notes.
  7. Select Save & Report Visit Took Place to complete the visit.

Validations

These scenarios describe how the app validates the Visit Took Place wizard.

ScenarioApp BehaviorSDK OutputExample
The doctor attempts to continue from Visit Summary without diagnosis and treatment notes.The app disables Continue and marks the summary field as required.Validation error for missing summary content.
The doctor enters a negative value in a charge field.The app rejects the value and marks the field with an error message.Validation error for invalid amount.
The doctor enters a discount that exceeds or equals the doctor net fee.The app blocks the discount and displays a message that explains the allowed range.Error such as NEGATIVE_TOTAL or fee limit error, depending on configuration.
The doctor attempts to define more than one discount.The app prevents additional discount entries and highlights the existing discount.Validation error for discount duplication.
A document entry lacks a name or valid type before file attachment.The app marks the document row as incomplete and blocks submission.Validation error and partial document row in the update set.
The wizard detects incomplete required fields on any step.The app blocks step transitions until fields meet validation rules.Validation error set that targets the affected fields.

Actions

These scenarios describe how the app responds to doctor actions on the Visit Took Place screen.

ScenarioApp BehaviorSDK OutputExample
The doctor selects Continue on a valid step.The app moves to the next step and keeps existing data for the visit.Update set that changes the current step in the page object.
The doctor selects Save & Report Visit Took Place.The app completes the visit, sets the appointment to a completed state, and returns control to Appointment Details or the appointment workspace.Update set that records visit notes, charges, discounts, documents, and status.
The doctor attaches a medical document with a valid type and note.The app displays the new document row in the Documents section.Update set that adds a document block to the page.
The doctor edits or removes a previously attached document.The app updates or removes the document row without a full reload.Update set that reflects the new document state.
The doctor edits charges or discount values.The app recalculates total fee and updates the Total (doctor’s share) field.Update set that updates charge rows and the total fee field.
The doctor navigates back to a previous step.The app keeps data from all steps and displays the requested step.Page object with the same data and updated active step.

Endpoint Resources

Visit Summary Screen

PUT 

/profile/appointments/{appointment-id}/summary

Produces the Visit Took Place wizard for the specified appointment

UI Element Types
LevelReferenceTypeValuePlacement
1summary-headerSectionVisit summary
1internal-noteMemoEnter diagnosis and treatment summary🗨 1
1summary-group~0Group🗨 1
2summary-field-name~0Regular
2summary-name-spacer~0Spacer~
2summary-edit-button~0LinkEdit~
2summary-files~0Upload
2summary-notes~0Edit🗨 1
1summary-targetRegular🗨 1
1attach-summary-textRegularOr upload visit summary:
1upload-visit-summarySecondaryUpload Visit Summary
1barBar
1charges-headerSectionCharges🗨 1
1charges-infoRegularIf there were any additional treatments, please add them here:
1header-itemExtraItem
1header-spacerSpacer~
1header-amountExtraDoctor fee~
1visit-typeRegularvisit type name🗨 1
1visit-spacerSpacer~
1visit-feeHighlightappointment net fee with currency~
1dashesDashes
1charge-group~0Group
2extra-title~0Regularextra charge's notes
2extra-spacer~0Spacer🗨 1
2extra-amount~0Highlightquantity * price in appointment’s currency~
2extra-edit~0LinkEdit~
2charge-info~0Editextra charge's notes🗨 1
2charge-quantity~0Integerextra charge's quantity🗨 1
2charge-price~0Doubleextra charge's amount🗨 1
2dashes~0Dashes
1extra-targetRegular🗨 1
1discount-groupGroup🗨 1
2extra-title~dRegulardiscount’s notes🗨 1
2extra-spacer~dSpacer~
2extra-amount~dHighlightdiscount price in appointment's currency🗨 1
2extra-edit~dLinkEdit~
2discount-type~dEditthe DiscountType in json representation🗨 1
2discount-amount~dDoublethe relative value of amount or percentage🗨 1
2dashesDashes
1discount-targetRegular🗨 1
1total-fee-titleHighlightTotal (doctor’s share)
1total-fee-spacerSpacer~
1total-feeHighlighttotal fee = appointment fee net + all charges - discount~
1add-chargeGhostAdd charge🗨 1
1add-discountGhostAdd discount🗨 1
1barBar
1document-headerSectionDocuments
1document-group~0Group
2document-type-title~0Highlightthe MedicalDocumentType translations (represents ExpenseTypeEnum)🗨 1
2document-file-name~0Extradocument’s notes
2document-name-spacer~0Spacer~
2document-edit-button~0LinkEdit~
2document-files~0Upload
2document-type~0Editthe MedicalDocumentType in json representation🗨 1
2document-notes~0Editdocument’s notes🗨 1
1document-targetRegular🗨 1
1attach-medical-documentSecondaryAttach Documents
1barBar
1saveButtonSave & Report visit took place

Present Visit Summary Popup

PUT 

/profile/appointments/{appointment-id}/summary/summaries

Presents the visit summary popup for the selected appointment in new or edit mode.

Save Visit Summary

POSt 

/profile/appointments/{appointment-id}/summary/summaries

Saves the complete visit summary for the appointment. This operation records physician notes, charges, discounts, and medical documents. The endpoint enforces validation rules and business constraints. A successful request returns 204 No Content.