Skip to content

Commit

Permalink
chore: restore methods
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellgithinji committed Sep 28, 2021
1 parent 350744c commit 62e6e0f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/clinical/usecases/fhir.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ type FHIRUseCase interface {
GetFHIRPatient(ctx context.Context, id string) (*domain.FHIRPatientRelayPayload, error)
DeleteFHIRPatient(ctx context.Context, id string) (bool, error)
DeleteFHIRResourceType(results []map[string]string) error
DeleteFHIRServiceRequest(ctx context.Context, id string) (bool, error)
}

// FHIRUseCaseImpl ...
Expand Down Expand Up @@ -1102,3 +1103,8 @@ func (fh *FHIRUseCaseImpl) DeleteFHIRPatient(ctx context.Context, id string) (bo
func (fh *FHIRUseCaseImpl) DeleteFHIRResourceType(results []map[string]string) error {
return nil
}

// DeleteFHIRServiceRequest deletes the FHIRServiceRequest identified by the supplied ID
func (fh *FHIRUseCaseImpl) DeleteFHIRServiceRequest(ctx context.Context, id string) (bool, error) {
return false, nil
}
7 changes: 7 additions & 0 deletions pkg/clinical/usecases/patient.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type ClinicalUseCase interface {
CreateUpdatePatientExtraInformation(ctx context.Context, input domain.PatientExtraInformationInput) (bool, error)
AllergySummary(ctx context.Context, patientID string) ([]string, error)
DeleteFHIRPatientByPhone(ctx context.Context, phoneNumber string) (bool, error)
StartEpisodeByBreakGlass(ctx context.Context, input domain.BreakGlassEpisodeCreationInput) (*domain.EpisodeOfCarePayload, error)
}

// ClinicalUseCaseImpl ...
Expand Down Expand Up @@ -650,3 +651,9 @@ func (c *ClinicalUseCaseImpl) AllergySummary(
func (c *ClinicalUseCaseImpl) DeleteFHIRPatientByPhone(ctx context.Context, phoneNumber string) (bool, error) {
return false, nil
}

//StartEpisodeByBreakGlass starts an emergency episode
func (c *ClinicalUseCaseImpl) StartEpisodeByBreakGlass(
ctx context.Context, input domain.BreakGlassEpisodeCreationInput) (*domain.EpisodeOfCarePayload, error) {
return nil, nil
}

0 comments on commit 62e6e0f

Please sign in to comment.