diff --git a/input.go b/input.go index 083d680..b895165 100644 --- a/input.go +++ b/input.go @@ -81,6 +81,7 @@ type ServiceIdentifierInput struct { // ProfileInput is the host of users data or a brief description of a person type ProfileInput struct { + ProfileID string `json:"profile_id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` OtherName string `json:"other_name"` diff --git a/output.go b/output.go index afb005d..46495d4 100644 --- a/output.go +++ b/output.go @@ -100,35 +100,8 @@ type ServiceIdentifier struct { // ProfileOutput is used to display profile(s) type ProfileOutput struct { - ID string `json:"id,omitempty"` - Created string `json:"created,omitempty"` - Active bool `json:"active"` - FirstName string `json:"first_name"` - LastName string `json:"last_name"` - OtherName string `json:"other_name"` - DateOfBirth string `json:"date_of_birth"` - Gender string `json:"gender"` - EnrolmentDate string `json:"enrolment_date"` - SladeCode string `json:"slade_code"` - ServiceCode string `json:"service_code"` - Contacts []*ProfileContactOutput `json:"contacts,omitempty"` - Identifiers []*ProfileIdentifierOutput `json:"identifiers,omitempty"` -} - -// ProfileContactOutput is used to show profile contacts -type ProfileContactOutput struct { - ID string `json:"id"` - ContactType string `json:"contact_type"` - ContactValue string `json:"contact_value"` - DateVerified string `json:"date_verified"` - Verified bool `json:"verifed,omitempty"` -} - -// ProfileIndentifierOutput is used to display profile identifiers -type ProfileIdentifierOutput struct { - ID string `json:"id"` - IdentifierType string `json:"identifier_type"` - IdentifierValue string `json:"identifier_value"` - ValidFrom string `json:"valid_from"` - ValidTo string `json:"valid_to"` + ID string `json:"id,omitempty"` + ProfileID string `json:"profile_id"` + HealthID string `json:"health_id"` + SladeCode string `json:"slade_code"` }