Skip to content

Commit

Permalink
feat: CE-365 (#36) (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: Barrett Falk <bfalk@salussystems.com>
Co-authored-by: cnesmithsalus <69365683+cnesmithsalus@users.noreply.github.com>
Co-authored-by: afwilcox <alecwilcox@gmail.com>
  • Loading branch information
4 people authored Mar 25, 2024
1 parent 65f8685 commit 7695313
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/case_file/case_file.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ type Mutation {
createPrevention(createPreventionInput: CreatePreventionInput!): CaseFile!
updatePrevention(updatePreventionInput: UpdatePreventionInput!): CaseFile!


createNote(input: CreateSupplementalNoteInput!): CaseFile!
updateNote(input: UpdateSupplementalNoteInput!): CaseFile!
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export class HWCRPreventionActionService {
long_description: true,
}
}
},
orderBy: {
display_order: 'asc',
}
})
}
Expand Down
23 changes: 23 additions & 0 deletions migrations/sql/R__0.16.1__CE-365_new_seed_data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
insert into case_management.action_code
(action_code, short_description, long_description, active_ind, create_user_id, create_utc_timestamp)
values
('CNTCTBIOVT', 'Contacted biologist and/or veterinarian', 'Contacted biologist and/or veterinarian', 'Y', CURRENT_USER, CURRENT_TIMESTAMP),
('DIRLOWLACT', 'Directed livestock owner to or explained sections 2, 26(2) and 75 of the Wildlife Act', 'Directed livestock owner to or explained sections 2, 26(2) and 75 of the Wildlife Act', 'Y', CURRENT_USER, CURRENT_TIMESTAMP),
('CONTACTLPP', 'Contacted the Livestock Protection Program ("LPP") (cattle and sheep only)', 'Contacted the Livestock Protection Program ("LPP") (cattle and sheep only)', 'Y', CURRENT_USER, CURRENT_TIMESTAMP)
on conflict do nothing;

UPDATE case_management.action_type_action_xref
SET display_order = 6 WHERE action_code = 'CNTCTBYLAW';
UPDATE case_management.action_type_action_xref
SET display_order = 5 WHERE action_code = 'CNTCTGROUP';

insert into case_management.action_type_action_xref
(action_type_code, action_code, display_order, active_ind, create_user_id, create_utc_timestamp)
values
('COSPRV&EDU', 'CNTCTBIOVT', 4, 'Y', CURRENT_USER, CURRENT_TIMESTAMP),
('COSPRV&EDU', 'DIRLOWLACT', 7, 'Y', CURRENT_USER, CURRENT_TIMESTAMP),
('COSPRV&EDU', 'CONTACTLPP', 8, 'Y', CURRENT_USER, CURRENT_TIMESTAMP)
on conflict do nothing;

UPDATE case_management.configuration
SET configuration_value = 2 WHERE configuration_code = 'CDTABLEVER';

0 comments on commit 7695313

Please sign in to comment.