action drchrono_appointment_templates_read { label: "appointment_templates_read" description: "Retrieve an existing appointment template" provider: drchrono method: GET path: "/api/appointment_templates/{id}" encoding: json input: { type: "object" properties: { doctor: { type: "integer" } id: { type: "string" } office: { type: "integer" } profile: { type: "integer" } } required: ["id"] additionalProperties: false } output: { type: "object" description: "Appointment templates are blocks of time during which a doctor usually sees appointments with the same profile. These may have a longer duration then the corresponding profile, in which case they may allow multiple appointments to be booked during that period." required: ["exam_room", "office", "profile", "scheduled_time", "week_days"] properties: { archived: { type: "boolean" description: "Indicats that the object has been soft-deleted and should not be used" } date_end: { type: "string" } date_start: { type: "string" } duration: { type: "integer" description: "Length of an appointment in minutes" } exam_room: { type: "integer" description: "**1-based** index for the exam room" } id: { type: "integer" } office: { type: "integer" } open_slots: { type: "array" description: "Array of time intervals during which the template is available. Only computed if the available and verbose query parameters are passed. Note that only slots long enough to fit an appointment with the corresponding profile are included." items: { type: "object" properties: { end: { type: "string" } start: { type: "string" } } } } profile: { type: "integer" description: "ID of the appointment profile to default to" } scheduled_time: { type: "string" } week_days: { type: "array" description: "Array of integers that indicate week days (`0` = Monday, ..., `6` = Sunday)" items: { type: "integer" } } } } }