Skip to content

Commit

Permalink
chore: add resourceType key when listing available questionnaires
Browse files Browse the repository at this point in the history
Signed-off-by: Kathurima Kimathi <kathurimakimathi415@gmail.com>
  • Loading branch information
KathurimaKimathi committed Feb 16, 2024
1 parent b3e6882 commit 4480390
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/clinical/application/dto/questionnaire_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func CreateQuestionnaireConnection(questionnaires []*Questionnaire, pageInfo Pag
// Questionnaire models the dataclass to display questionnaires
type Questionnaire struct {
ID string `json:"id,omitempty"`
ResourceType string `json:"resourceType,omitempty"`
Meta Meta `json:"meta,omitempty"`
ImplicitRules string `json:"implicitRules,omitempty"`
Language string `json:"language,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions pkg/clinical/domain/questionnaire.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type PagedFHIRQuestionnaires struct {
// FHIRQuestionnaire models the FHIR questionnaire model as described in https://www.hl7.org/fhir/questionnaire.html
type FHIRQuestionnaire struct {
ID *string `json:"id,omitempty" mapstructure:"id"`
ResourceType string `json:"resourceType,omitempty" mapstructure:"resourceType"`
Meta *FHIRMetaInput `json:"meta,omitempty" mapstructure:"meta"`
ImplicitRules *string `json:"implicitRules,omitempty" mapstructure:"implicitRules"`
Language *string `json:"language,omitempty" mapstructure:"language"`
Expand Down
60 changes: 60 additions & 0 deletions pkg/clinical/presentation/graph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/clinical/presentation/graph/types.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ type QuestionnaireConnection {

type Questionnaire {
id: String
resourceType: String!
meta: Meta
implicitRules: String
language: String
Expand Down

0 comments on commit 4480390

Please sign in to comment.