Skip to content

Commit

Permalink
refactor: add observation when referring a patient
Browse files Browse the repository at this point in the history
- refactor re-usable components in composition

Signed-off-by: Kathurima Kimathi <kathurimakimathi415@gmail.com>
  • Loading branch information
KathurimaKimathi committed Mar 26, 2024
1 parent bcc124f commit dbbfc8c
Show file tree
Hide file tree
Showing 12 changed files with 770 additions and 283 deletions.
7 changes: 5 additions & 2 deletions pkg/clinical/application/common/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ const (
// LOINCExamination defines LOINC Examination note terminology code
LOINCExamination = "29545-1"

// LOINCPLANOFCARE defines LOINC Plan of care note terminology code
LOINCPLANOFCARE = "18776-5"
// LOINCPlanOfCare defines LOINC Plan of care note terminology code
LOINCPlanOfCare = "18776-5"

// LOINCReferralNote defines the referral code for patient referral under LOINC system
LOINCReferralNote = "57133-1"

// ColposcopyCIELTerminologyCode is the terminology code for colposcopy findings
ColposcopyCIELTerminologyCode = "162816"
Expand Down
9 changes: 5 additions & 4 deletions pkg/clinical/application/dto/enums.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const (
FamilyHistory CompositionCategory = "FAMILY_HISTORY"
Examination CompositionCategory = "EXAMINATION"
PlanOfCare CompositionCategory = "PLAN_OF_CARE"
ReferralNote CompositionCategory = "REFERRAL_NOTE"
)

// Type enum represents type composition attribute
Expand All @@ -181,10 +182,10 @@ const (
type CompositionStatusEnum string

const (
CompositionStatuEnumPreliminary CompositionStatusEnum = "PRELIMINARY"
CompositionStatuEnumFinal CompositionStatusEnum = "FINAL"
CompositionStatuEnumAmended CompositionStatusEnum = "AMENDED"
CompositionStatuEnumEnteredInErrorPreliminary CompositionStatusEnum = "ENTERED_IN_ERROR"
CompositionStatusEnumPreliminary CompositionStatusEnum = "PRELIMINARY"
CompositionStatusEnumFinal CompositionStatusEnum = "FINAL"
CompositionStatusEnumAmended CompositionStatusEnum = "AMENDED"
CompositionStatusEnumEnteredInErrorPreliminary CompositionStatusEnum = "ENTERED_IN_ERROR"
)

// ConsentStatusEnum a type enum tha represents a Consent Status field of consent resource
Expand Down
2 changes: 1 addition & 1 deletion pkg/clinical/presentation/graph/clinical.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,5 @@ extend type Mutation {
getEncounterAssociatedResources(encounterID: String!): EncounterAssociatedResourceOutput!

# Referral
referPatient(input: ReferralInput!): ServiceRequest!
referPatient(input: ReferralInput!, count: Int): ServiceRequest!
}
4 changes: 2 additions & 2 deletions pkg/clinical/presentation/graph/clinical.resolvers.go

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

36 changes: 21 additions & 15 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.

Loading

0 comments on commit dbbfc8c

Please sign in to comment.