-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-v2' into dependabot/github_actions/actions/setu…
…p-go-4
- Loading branch information
Showing
55 changed files
with
13,733 additions
and
17,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
package dto | ||
|
||
import "github.com/go-playground/validator" | ||
|
||
type OrganizationIdentifier struct { | ||
Type OrganizationIdentifierType `json:"type"` | ||
Value string `json:"value"` | ||
Type OrganizationIdentifierType `json:"type,omitempty"` | ||
Value string `json:"value,omitempty"` | ||
} | ||
|
||
type OrganizationInput struct { | ||
Name string `json:"name"` | ||
PhoneNumber string `json:"phoneNumber"` | ||
Identifiers []OrganizationIdentifier `json:"identifiers"` | ||
Name string `json:"name,omitempty"` | ||
PhoneNumber string `json:"phoneNumber,omitempty"` | ||
Identifiers []OrganizationIdentifier `json:"identifiers,omitempty"` | ||
} | ||
|
||
type EpisodeOfCareInput struct { | ||
Status EpisodeOfCareStatusEnum `json:"status"` | ||
PatientID string `json:"patientID"` | ||
} | ||
|
||
// ObservationInput models the observation input | ||
type ObservationInput struct { | ||
Status ObservationStatus `json:"status,omitempty" validate:"required"` | ||
EncounterID string `json:"encounterID,omitempty" validate:"required"` | ||
Value string `json:"value,omitempty" validate:"required"` | ||
} | ||
|
||
func (o ObservationInput) Validate() error { | ||
v := validator.New() | ||
err := v.Struct(o) | ||
|
||
return err | ||
} |
Oops, something went wrong.