Skip to content

Commit

Permalink
CARDS-2549 / CARDS-2554: Only show patient forms in the Patient Portal
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumitriu committed Jul 24, 2024
1 parent 0885e3d commit 1819a39
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ function QuestionnaireSet(props) {
let data = {};
Object.entries(json || {})
.filter(([key, value]) => value['jcr:primaryType'] == 'cards:QuestionnaireRef')
.filter(([key, value]) => (!value.targetUserType || value.targetUserType == 'patient'))
.forEach(([key, value]) => {
let addons = Object.values(value).filter(filterValue => ENTRY_TYPES.includes(filterValue['jcr:primaryType']));
data[value.questionnaire['@name']] = {
Expand Down

0 comments on commit 1819a39

Please sign in to comment.