Skip to content

Commit

Permalink
Included de-identify flag in record creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-brinkman committed Apr 2, 2024
1 parent 72c98cc commit 708c463
Show file tree
Hide file tree
Showing 3 changed files with 730 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ReferenceAssessmentController {
ActivityService activityService


private def createAssessmentRecordFromReference(Object referenceActivity, Object assessProjectActivity) {
private def createAssessmentRecordFromReference(Object referenceActivity, Object assessProjectActivity, boolean deIdentify) {
def refDoc = referenceActivity.documents[0]
def assessPhoto = [
licence: refDoc["licence"],
Expand Down Expand Up @@ -43,7 +43,8 @@ class ReferenceAssessmentController {
overallConditionBestEstimate: "0",
mvgGroup: referenceActivity.outputs[0].data.vegetationStructureGroup,
huchinsonGroup: referenceActivity.outputs[0].data.huchinsonGroup,
sitePhoto: [assessPhoto]
sitePhoto: [assessPhoto],
deIdentify: deIdentify ? "Yes" : "No"
],
name: assessProjectActivity["pActivityFormName"]
]
Expand Down Expand Up @@ -148,7 +149,8 @@ class ReferenceAssessmentController {
assessActivities.push(
createAssessmentRecordFromReference(
refActivities[projectIndex],
assessProjectActivity
assessProjectActivity,
body['deIdentify']
)
)
}
Expand Down
Loading

0 comments on commit 708c463

Please sign in to comment.