medical_record_entity

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMedicalRecordRequest

type CreateMedicalRecordRequest struct {
	IdentityNumber int    `json:"identityNumber" validate:"required,int16length"`
	Symptoms       string `json:"symptoms" validate:"required,min=1,max=2000"`
	Medications    string `json:"medications" validate:"required,min=1,max=2000"`
}

type CreateMedicalRecordResponse

type CreateMedicalRecordResponse struct {
	Message string         `json:"message"`
	Data    *MedicalRecord `json:"data"`
}

type CreatePatientRequest

type CreatePatientRequest struct {
	IdentityNumber      int    `json:"identityNumber" validate:"required,int16length"`
	PhoneNumber         string `json:"PhoneNumber" validate:"required,min=10,max=15,phoneNumber"`
	Name                string `json:"name" validate:"required,min=3,max=30"`
	BirthDate           string `json:"birthDate" validate:"required,ISO8601DateTime"`
	Gender              string `json:"gender" validate:"required,gender"`
	IdentityCardScanImg string `json:"identityCardScanImg" validate:"required,validateUrl"`
}

type CreatePatientResponse

type CreatePatientResponse struct {
	Message string   `json:"message"`
	Data    *Patient `json:"data"`
}

type MedicalRecord

type MedicalRecord struct {
	Id             string `json:"id,omitempty"`
	IdentityNumber int    `json:"identityNumber,omitempty"`
	Symptoms       string `json:"symptoms,omitempty"`
	Medications    string `json:"medications,omitempty"`
	CreatedBy      string `json:"createdBy,omitempty"`
	CreateAt       string `json:"createdAt,omitempty"`
}

type Patient

type Patient struct {
	Id                  string `json:"id,omitempty"`
	IdentityNumber      int    `json:"identityNumber,omitempty"`
	PhoneNumber         string `json:"PhoneNumber,omitempty"`
	Name                string `json:"name,omitempty"`
	BirthDate           string `json:"birthDate,omitempty"`
	Gender              string `json:"gender,omitempty"`
	IdentityCardScanImg string `json:"identityCardScanImg,omitempty"`
	CreatedAt           string `json:"createdAt,omitempty"`
}

type SearchMedicalRecordData

type SearchMedicalRecordData struct {
	IdentityDetail *Patient              `json:"identityDetail"`
	Symptoms       string                `json:"symptoms"`
	Medications    string                `json:"medications"`
	CreatedAt      string                `json:"createdAt"`
	CreatedBy      *user_entity.UserData `json:"createdBy"`
}

type SearchMedicalRecordQuery

type SearchMedicalRecordQuery struct {
	IdentityNumber string `query:"identityDetail.identityNumber"`
	CreatedById    string `query:"createdBy.userId"`
	CreatedByNip   string `query:"createdBy.nip"`
	CreatedAt      string `query:"createdAt"`
	Limit          int    `query:"limit"`
	Offset         int    `query:"offset"`
}

type SearchMedicalRecordResponse

type SearchMedicalRecordResponse struct {
	Message string                     `json:"message"`
	Data    *[]SearchMedicalRecordData `json:"data"`
}

type SearchPatientData

type SearchPatientData struct {
	IdentityNumber int    `json:"identityNumber"`
	PhoneNumber    string `json:"PhoneNumber"`
	Name           string `json:"name"`
	BirthDate      string `json:"birthDate"`
	Gender         string `json:"gender"`
	CreatedAt      string `json:"createdAt"`
}

type SearchPatientQuery

type SearchPatientQuery struct {
	IdentityNumber string
	Name           string
	PhoneNumber    string
	CreatedAt      string
	Limit          int
	Offset         int
}

type SearchPatientResponse

type SearchPatientResponse struct {
	Message string               `json:"message"`
	Data    *[]SearchPatientData `json:"data"`
}

Jump to

Keyboard shortcuts

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