Skip to content

Commit

Permalink
(feat) : Add ability to create appointment from the form (#772)
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Murithi <[email protected]>
  • Loading branch information
donaldkibet and Murithijoshua authored Sep 19, 2024
1 parent a887c64 commit 63fddd1
Show file tree
Hide file tree
Showing 15 changed files with 285 additions and 180 deletions.
115 changes: 110 additions & 5 deletions configuration/ampathforms/HIV_Green_Card.json
Original file line number Diff line number Diff line change
Expand Up @@ -5022,14 +5022,119 @@
}
},
{
"label": "Return Visit Date:",
"id": "appointmentWorkspaceLauncher",
"type": "appointment",
"questionInfo": "Location of the facility where the appointment was scheduled",
"label": "Location",
"id": "appointmentLocation",
"required": "true",
"questionOptions": {
"rendering": "workspace-launcher",
"buttonLabel": "Add appointments",
"workspaceName": "appointments-form-workspace"
"rendering": "remote-select",
"appointmentKey": "location",
"dataSource": "location"
}
},
{
"label": "Date appointment issued",
"id": "dateAppointmentIssued",
"questionOptions": {
"rendering": "date",
"appointmentKey": "dateAppointmentScheduled"
},
"type": "appointment",
"validators": []
},
{
"label": "Service",
"id": "service",
"questionOptions": {
"rendering": "remote-select",
"appointmentKey": "service",
"dataSource": "services"
},
"type": "appointment",
"validators": []
},
{
"label": "Appointment type",
"id": "appointmentType",
"questionOptions": {
"placeholder": "Select appointment status",
"rendering": "select",
"appointmentKey": "appointmentKind",
"answers": [
{
"label": "Scheduled",
"concept": "Scheduled"
}
]
},
"type": "appointment",
"validators": []
},
{
"label": "Appointment date & time",
"id": "appointmentDatetime",
"datePickerFormat": "both",
"questionOptions": {
"placeholder": "Enter appointment date & time",
"rendering": "date",
"appointmentKey": "startDateTime",
"answers": []
},
"type": "appointment",
"validators": []
},
{
"label": "Duration",
"id": "appointmentDuration",
"questionOptions": {
"placeholder": "Enter appointment duration",
"rendering": "number",
"appointmentKey": "duration"
},
"type": "appointment",
"validators": []
},
{
"label": "Appointment status",
"id": "appointmentStatus",
"questionOptions": {
"placeholder": "Select appointment status",
"rendering": "select",
"appointmentKey": "status",
"answers": [
{
"label": "Scheduled",
"concept": "Scheduled"
}
]
},
"type": "appointment",
"validators": []
},
{
"label": "Provider",
"id": "provider",
"questionOptions": {
"rendering": "remote-select",
"appointmentKey": "providers",
"dataSource": "provider"
},
"type": "appointment",
"validators": []
},
{
"label": "Notes",
"id": "appointmentNote",
"questionOptions": {
"placeholder": "Enter appointment notes",
"rendering": "textarea",
"appointmentKey": "comments",
"rows": 5
},
"type": "appointment",
"validators": []
},
{
"label": "Return visit Reason:",
"type": "obs",
Expand Down
129 changes: 0 additions & 129 deletions dist-form-entry/22751.de8fd4f3ef0fb4d8.js

This file was deleted.

1 change: 0 additions & 1 deletion dist-form-entry/22751.de8fd4f3ef0fb4d8.js.map

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

129 changes: 129 additions & 0 deletions dist-form-entry/53210.3a743d101ac4b383.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist-form-entry/53210.3a743d101ac4b383.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist-form-entry/main.40a70715c61385fe.js

This file was deleted.

1 change: 0 additions & 1 deletion dist-form-entry/main.40a70715c61385fe.js.map

This file was deleted.

1 change: 1 addition & 0 deletions dist-form-entry/main.bbba269fdb984ee8.js

Large diffs are not rendered by default.

Loading

0 comments on commit 63fddd1

Please sign in to comment.