Documentation
¶
Index ¶
- func AddNewRecordHandler(c *gin.Context)
- func AddRecordAttachmentsHandler(c *gin.Context)
- func DeleteRecordAttachmentHandler(c *gin.Context)
- func GetRecordAttachmentsHandler(c *gin.Context)
- func GetRecordInfoHandler(c *gin.Context)
- func GetRecordListHandler(c *gin.Context)
- func Routes(r *gin.RouterGroup)
- func UpdateMedicalRecordHandler(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewRecordHandler ¶
Add new record godoc @Summary Add a new record (doctor) @Description Add a new record for a patient @Tags records @Accept json @Produce json @Security BearerAuth @Param NewMedicalRecordRequest body models.NewMedicalRecordRequest true "New Medical Record Request" @Success 201 {object} models.NewMedicalRecordResponse @Failure 400 @Failure 401 @Failure 403 @Failure 500 @Router /records [post]
func AddRecordAttachmentsHandler ¶
Add record attachments godoc @Summary Add attachments to a record (doctor) @Description Add attachments to an existing record @Tags records @Accept multipart/form-data @Produce json @Security BearerAuth @Param record_id path string true "Record ID" @Param attachments formData file true "Attachments, support 5 types of prefix: xray_, ct_, ultrasound_, test_, other_. Ex: xray_1.jpg" @Success 201 @Failure 400 @Failure 401 @Failure 403 @Failure 500 @Router /records/{record_id}/attachments [post]
func DeleteRecordAttachmentHandler ¶
Delete record attachment godoc @Summary Delete record attachment (doctor) @Description Delete a record attachment by record ID and file name @Tags records @Accept json @Produce json @Security BearerAuth @Param record_id path string true "Record ID" @Param body body models.DeleteRecordAttachmentRequest true "Attachment file name to delete" @Success 200 @Failure 400 @Failure 401 @Failure 403 @Failure 404 @Failure 500 @Router /records/{record_id}/attachments [delete]
func GetRecordAttachmentsHandler ¶
Get record attachments godoc @Summary Get record attachments (doctor, patient) @Description Get all attachments of a specific medical record @Tags records @Accept json @Produce application/zip @Security BearerAuth @Param record_id path string true "Record ID" @Success 200 {file} file "ZIP file containing all record's attachments" @Failure 400 @Failure 401 @Failure 403 @Failure 500 @Router /records/{record_id}/attachments [get]
func GetRecordInfoHandler ¶
Get record info godoc @Summary Get record info (doctor, patient) @Description Get detailed information about a specific medical record @Tags records @Accept json @Produce json @Security BearerAuth @Param record_id path string true "Record ID" @Success 200 {object} models.MedicalRecordInfo @Failure 400 @Failure 401 @Failure 403 @Failure 500 @Router /records/{record_id} [get]
func GetRecordListHandler ¶
Get record list godoc @Summary Get record list (doctor, patient) @Description Get a list of medical records for a patient or all records for a doctor @Tags records @Accept json @Produce json @Security BearerAuth @Success 200 {array} models.MedicalRecordBriefInfo @Failure 400 @Failure 401 @Failure 403 @Failure 500 @Router /records [get]
func Routes ¶
func Routes(r *gin.RouterGroup)
func UpdateMedicalRecordHandler ¶
Update medical record godoc @Summary Update a medical record (doctor) @Description Update a medical record by record ID @Tags records @Accept json @Produce json @Security BearerAuth @Param record_id path string true "Record ID" @Param body body models.UpdateMedicalRecordRequest true "Update medical record request" @Success 200 @Failure 400 @Failure 401 @Failure 403 @Failure 500 @Router /records/{record_id} [put]
Types ¶
This section is empty.