[call "resource:property" {"id":"title"}]
[if summary != null || webpageUrl != null][localized "unitMultipleInstitutions"]
-
[if unitMultipleInstitutionsExternalName != null]
- [localized "cooperationWith"] [call "comp:listUnitExternalNames" { "names": unitMultipleInstitutionsExternalName }][/if][if (healthResearch = "NO" && unitMultipleInstitutionsDocumentsNames = null)] [/if] [if healthResearch = "YES"]
- [if unitMultipleInstitutionsResponsible != null][def institutionResponsibleLocalized concat("institutionResponsible-", unitMultipleInstitutionsResponsible)][localized institutionResponsibleLocalized][else][localized "institutionResponsible-LOCAL"][/if][if unitMultipleInstitutionsDocumentsNames = null] [/if][/if] [if unitMultipleInstitutionsDocumentsNames != null] [if (unitMultipleInstitutionsExternalName != null || healthResearch = "YES")]
- [if unitMultipleInstitutionsDealSharedResponsibility != null][def institutionDealSharedResponsibleLocalized = concat("institutionDealSharedResponsible-", unitMultipleInstitutionsDealSharedResponsibility)][localized institutionDealSharedResponsibleLocalized][else][localized "institutionDealSharedResponsible-LOCAL"][/if]
[if unitMultipleInstitutionsDocumentsNames != null && unitMultipleInstitutionsDealSharedResponsibility = "SHARED"]
-
[def count = 0]
[list unitMultipleInstitutionsDocumentsNames docName]
[if docName ~ "AGREEMENT-SHARED-PROCESSING-RESPONSIBILITY"]
[def theDoc = ""]
[def countDocs = 0]
[list unitMultipleInstitutionsDocuments doc]
[if countDocs = count]
[def theDoc = doc]
[/if]
[def countDocs = countDocs + 1]
[/list]
[call "comp:filenameFromPath" { "doc": theDoc, "docsNames": unitMultipleInstitutionsDocumentsNames, "count": count }]
[/if]
[def count = count + 1]
[/list]
[/if]
- [/if]
[def count = 0]
[list unitMultipleInstitutionsDocumentsNames docName]
[if docName ~ "AGREEMENT-SHARED-PROCESSING-RESPONSIBILITY"]
[else]
[def theDoc = ""]
[def countDocs = 0]
[list unitMultipleInstitutionsDocuments doc]
[if countDocs = count]
[def theDoc = doc]
[/if]
[def countDocs = countDocs + 1]
[/list]
[call "comp:filenameFromPath" { "doc": theDoc, "docsNames": unitMultipleInstitutionsDocumentsNames, "count": count }]
[/if]
[def count = count + 1]
[/list]
[if (unitMultipleInstitutionsExternalName != null || healthResearch = "YES")]
[localized "documents"]
[call "comp:listDocuments" { "docs": documents, "docsNames": documentsNames, "extra": "no", "isAuthorizedToReadSubFolders": isAuthorizedToReadSubFolders }] [/if] [if processingPersonalData = "YES" || healthResearch = "YES"] [if dataTsd != null]TSD
- [if dataTsd = "NO"] [localized "NO"] [if dataTsdNoReason != null]
- [localized "reasonPrefix"]: [val dataTsdNoReason][/if] [else] [if dataTsdProjectNumber != null][val dataTsdProjectNumber][else][localized "YES"][/if] [/if]
Biobank
[if biobank = "YES"]-
[if biobankPlace != null || biobankNumber != null || biobankResponsibleOtherName != null || biobankResponsibleCachedFullName != null]
[if biobankPlace != null]
- [localized "biobankPlace"]: [val biobankPlace] [/if] [if biobankNumber != null]
- [localized "biobankNumber"]: [val biobankNumber] [/if] [if biobankResponsibleInstitution = "OTHER"] [if biobankResponsibleOtherName != null]
- [localized "biobankResponsible"]: [val biobankResponsibleOtherName][if biobankResponsibleOtherAffiliation != null] ([val biobankResponsibleOtherAffiliation])[/if] [/if] [else] [if biobankResponsibleCachedFullName != null]
- [localized "biobankResponsible"]: [val biobankResponsibleCachedFullName.name] [/if] [/if] [else]
- [localized biobank] [/if]
- [localized "NO"]
[localized "approvals"]
[if (approvalInternalStatus = null || approvalInternalStatus = "NOT_APPLIED") && (approvalNsdStatus = null || approvalNsdStatus = "NOT_APPLIED") && (approvalRekStatus = null || approvalRekStatus = "NOT_APPLIED") && ((healthResearch = "NO" && approvalStatLegemiddelverkStatus != null && approvalStatLegemiddelverkStatus != "NOT_APPLIED") || (approvalStatLegemiddelverkStatus = null || approvalStatLegemiddelverkStatus = "NOT_APPLIED")) && (approvalOthers = null || approvalOthers = "NOT_APPLIED")][localized "approvalsNone"]
[/if] [if approvalInternalStatus != null && approvalInternalStatus != "NOT_APPLIED"][localized "approvalInternal"] - [localized approvalInternalStatus][call "comp:countDocuments" { "docs": approvalInternal }]
[if approvalInternalStatus = "APPROVED"] [if approvalInternal != null] [call "comp:listDocuments" { "docs": approvalInternal, "docsNames": approvalInternalNames, "extra": "no", "isAuthorizedToReadSubFolders": isAuthorizedToReadSubFolders }] [else] [if approvalInternalApprover != null][localized "approvalInternalApprovedBy"]: [val approvalInternalApprover]
[else][localized "documentsNotUploaded"]
[/if] [/if] [/if] [if approvalInternalStatus = "NO_NEED" && healthResearch != "YES"] [call "comp:listDocuments" { "docs": approvalInternal, "docsNames": approvalInternalNames, "extra": "no", "isAuthorizedToReadSubFolders": isAuthorizedToReadSubFolders }] [if approvalInternalNoNeedReason != null][val approvalInternalNoNeedReason]
[/if] [/if] [/if] [call "comp:approvalExternal" { "name": "approvalNsd", "status": approvalNsdStatus, "docs": approvalNsd, "docsNames": approvalNsdNames, "noNeedReason": approvalNsdNoNeedReason, "aMonth": approvalNsdDataAnonymisationMonth, "aYear": approvalNsdDataAnonymisationYear, "dMonth": approvalNsdDataDeletionMonth, "dYear": approvalNsdDataDeletionYear, "isAuthorizedToReadSubFolders": isAuthorizedToReadSubFolders }] [call "comp:approvalExternal" { "name": "approvalRek", "status": approvalRekStatus, "docs": approvalRek, "docsNames": approvalRekNames, "noNeedReason": approvalRekNoNeedReason, "aMonth": approvalRekDataAnonymisationMonth, "aYear": approvalRekDataAnonymisationYear, "dMonth": approvalRekDataDeletionMonth, "dYear": approvalRekDataDeletionYear, "isAuthorizedToReadSubFolders": isAuthorizedToReadSubFolders }] [if healthResearch = "YES"] [call "comp:approvalExternal" { "name": "approvalStatLegemiddelverk", "status": approvalStatLegemiddelverkStatus, "docs": approvalStatLegemiddelverk, "docsNames": approvalStatLegemiddelverkNames, "noNeedReason": approvalStatLegemiddelverkNoNeedReason, "aMonth": approvalStatLegemiddelverkDataAnonymisationMonth, "aYear": approvalStatLegemiddelverkDataAnonymisationYear, "dMonth": approvalStatLegemiddelverkDataDeletionMonth, "dYear": approvalStatLegemiddelverkDataDeletionYear, "isAuthorizedToReadSubFolders": isAuthorizedToReadSubFolders }] [/if] [if approvalOthers != null]