Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) : Add ability to create appointment from the form #772

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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