Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) LIME2-362 restrict forms by encounter privileges #30

Merged
merged 3 commits into from
Aug 15, 2024

Conversation

pirupius
Copy link
Collaborator

@pirupius pirupius commented Aug 15, 2024

This PR makes improvements to the encounter type definitions adding privileges as well as some clean ups.

  • Updated all Mental Health forms to include the encounter name as well as the encounter type
   "encounter": "Mental Health",
   "encounterType": "95d68645-1b72-4290-be0b-ec1fb64bc067",
  • Moves clinical view specific privileges to central hierarchy for easier inheritance
  • Adds privileges to encounter intializer configs
  • Removes unnecessary form specific privileges

@@ -1,2 +0,0 @@
Uuid,Privilege name,Description,_order:1000
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this anymore

@@ -6,6 +6,7 @@
"uuid": "",
"processor": "EncounterFormProcessor",
"encounter": "Mental Health",
"encounterType": "95d68645-1b72-4290-be0b-ec1fb64bc067",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This attribute is used to link encounter privileges with user roles

Comment on lines +2 to +3
efb1ee49-ed60-40f4-aa2e-c45143dc4d49,,Nutrition,Encounter for capturing nutrition information,Manage Nutrition,Manage Nutrition,
95d68645-1b72-4290-be0b-ec1fb64bc067,,Mental Health,Encounter for capturing mental health information,Manage Mental Health,Manage Mental Health,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added privileges to encounter type definitions

@pirupius pirupius merged commit daedad1 into main Aug 15, 2024
@pirupius pirupius deleted the feat/LIME2-362/restrict-form-by-encounter-privileges branch August 15, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant