record_api

package
v0.0.0-...-99d0739 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewRecordHandler

func AddNewRecordHandler(c *gin.Context)

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

func AddRecordAttachmentsHandler(c *gin.Context)

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

func DeleteRecordAttachmentHandler(c *gin.Context)

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

func GetRecordAttachmentsHandler(c *gin.Context)

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

func GetRecordInfoHandler(c *gin.Context)

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

func GetRecordListHandler(c *gin.Context)

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

func UpdateMedicalRecordHandler(c *gin.Context)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL