Population of the CCReportRequestScheme DTO
The CCReportRequestScheme DTO is referenced when Creating Report Requests from Job Report Stakeholders, to place content into the output document as per the report template.
For enabled-scope, defaults originating from org-scope are indicated.
For certificate report requests: Only schemes where the job scheme's Reportable is selected are created as report request schemes.
For paperwork and label report requests: Only schemes where a related sample scheme analyte's Reportable is selected are created as report request schemes (that is, it is a cascade up where a related report request sample scheme analyte is created).
For analysis report requests: All job schemes are created as report request schemes.
| Property | Default |
Org-scope job with |
Lab-scope job with |
Lab-scope job with |
|---|---|---|---|---|
|
Current entity's ID |
|
|
|
|
reportRequest.code and id |
|
|
|
|
Indicates whether the entity has organisation scope |
True |
False |
False |
|
jobScheme.organisationCode |
Current organisation |
Current organisation |
Current organisation |
|
jobScheme.laboratoryCode |
|
Current laboratory |
Current laboratory |
|
jobScheme.jobCode and id |
|
|
|
|
jobScheme.schemeLaboratoryCode |
Empty |
Empty |
Current laboratory |
|
jobScheme.schemeCode and schemeId |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
scheme.name |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
scheme.description |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
jobScheme.schemeVersionNumber and schemeVersionId |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
schemeVersion.name |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
schemeVersion.description |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
Sequence of schemes as displayed on the report request Scheme tab. Uses CCJobScheme.profileSequence |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For certificate report requests: From jobScheme.isReportable For paperwork or labels report requests: This entity is created only if at least one report request sample scheme analyte is created, in which case, jobScheme.isReportable is true. |
|
|
|
|
If jobScheme.reportName is not empty, then use that; otherwise if schemeVersion.reportName is not empty, then use that |
Uses org-scope scheme version when job scheme's report name is empty |
Uses org-scope scheme version when job scheme's report name is empty |
Uses lab-scope when job scheme's report name is empty |
|
If job scheme.reportDescription is not empty, then use that; otherwise if schemeVersion.reportDescription is not empty then use that |
Uses org-scope scheme version when job scheme's report description is empt |
Uses org-scope scheme version when job scheme's report description is empt |
Uses lab-scope scheme version when job scheme's report description is empt |
|
If jobScheme.reportSequence is not empty, then use that, otherwise 0 |
|
|
|
|
|
|
|
|
|
schemeVersion.resultsHeaderText *** Known defect, as it should be: jobScheme.resultHeaderText |
Uses org-scope |
Uses org-scope |
Uses lab-scope |
