mastering bridging
This commit is contained in:
30
internal/model/immunization.go
Normal file
30
internal/model/immunization.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package model
|
||||
|
||||
type ImmunizationRequest struct {
|
||||
Id string `json:"id,omitempty"`
|
||||
ResourceType string `json:"resourceType"`
|
||||
Status string `json:"status" binding:"required"`
|
||||
VaccineCode CodeableConcept `json:"vaccineCode" binding:"required"`
|
||||
Patient Reference `json:"patient" binding:"required"`
|
||||
Encounter Reference `json:"encounter"`
|
||||
OccurrenceDateTime string `json:"occurrenceDateTime" binding:"required"`
|
||||
ExpirationDate string `json:"expirationDate" binding:"required"`
|
||||
Recorded string `json:"recorded" binding:"required"`
|
||||
PrimarySource bool `json:"primarySource"`
|
||||
Location Reference `json:"location" binding:"required"`
|
||||
LotNumber string `json:"lotNumber" binding:"required"`
|
||||
Route CodeableConcept `json:"route" binding:"required"`
|
||||
DoseQuantity Quantity `json:"doseQuantity" binding:"required"`
|
||||
Performer []Performers `json:"performer" binding:"required"`
|
||||
ReasonCode []CodeableConcept `json:"reasonCode" binding:"required"`
|
||||
ProtocolApplied []ProtocolApplied `json:"protocolApplied" binding:"required"`
|
||||
}
|
||||
|
||||
type Performers struct {
|
||||
Function CodeableConcept `json:"function"`
|
||||
Actor Reference `json:"actor"`
|
||||
}
|
||||
|
||||
type ProtocolApplied struct {
|
||||
DoseNumberPositiveInt int `json:"doseNumberPositiveInt"`
|
||||
}
|
||||
Reference in New Issue
Block a user