Population of the CCReportRequestSchemeAnalyte DTO
The CCReportRequestSchemeAnalyte 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 analyte's Reportable is selected are created as report request scheme analytes.
For paperwork and label report requests: Only scheme analytes where a related sample scheme analyte's Reportable is selected are created as report request scheme analytes (that is, it is a cascade up where a related report request sample scheme analyte is created).
For analysis report requests: No report request scheme analytes are created as it is a scheme-based report.
| Property | Default |
Org-scope job with |
Lab-scope job with |
Lab-scope job with |
|---|---|---|---|---|
|
Current entity's ID |
|
|
|
|
Current report request |
|
|
|
|
jobSchemeAnalyte.organisationCode |
Current organisation |
Current organisation |
Current organisation |
|
jobSchemeAnalyte.laboratoryCode |
|
Current laboratory |
Current laboratory |
|
jobSchemeAnalyte.jobCode |
|
|
|
|
reportRequestScheme.id |
|
|
|
|
jobSchemeAnalyte.schemeLaboratoryCode |
Empty |
Empty |
Current laboratory |
|
jobSchemeAnalyte.schemeCode |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
jobSchemeAnalyte.schemeVersionNumber and id |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
jobSchemeAnalyte.analyteCode and schemeVersionAnalyteId |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
schemeVersionAnalyte.name |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
schemeVersionAnalyte.description |
Displays org-scope |
Displays org-scope |
Displays lab-scope |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For certificate report requests: From jobSchemeAnalyte.isReportable For paperwork or labels report request: this entity is created only if at least one report request sample scheme analyte is created, in which case, jobSchemeAnalyte.isReportable is true. |
|
|
|
|
If jobSchemeAnalyte.reportName is not empty, then use that; otherwise if schemeVersionAnalyte.reportName is not empty, then use that |
Uses org-scope scheme version analyte when job scheme analyte's report name is empty |
Uses org-scope scheme version analyte when job scheme analyte's report name is empty |
Uses lab-scope scheme version analyte when job scheme analyte's report name is empty |
|
If jobSchemeAnalyte.reportDescription is not empty, then use that; otherwise if schemeVersionAnalyte.reportDescription is not empty, then use that |
Uses org-scope scheme version analyte when job scheme analyte's report description is empty |
Uses org-scope scheme version analyte when job scheme analyte's report description is empty |
Uses lab-scope scheme version analyte when job scheme analyte's report description is empty |
|
If jobSchemeAnalyte.reportSequence is not empty, then use that, otherwise 0 |
|
|
|
|
schemeVersionAnalyte.reportUnitCode and reportUnitId (uses getReportUnitId) |
Uses org-scope |
Uses enabled-scope |
Uses lab-scope |
|
schemeVersionAnalyte.roundingMethodType |
Uses org-scope |
Uses enabled-scope |
Uses lab-scope |
|
schemeVersionAnalyte.roundingTableCode and id (uses getRoundingTableId) |
Uses org-scope |
Uses enabled-scope |
Uses lab-scope |
|
schemeVersionAnalyte.reportLowerDetectionLimit (uses getRepLowerDl) |
Uses org-scope |
Uses enabled-scope |
Uses lab-scope |
|
schemeVersionAnalyte.reportUpperDetectionLimit (uses getRepUpperDl) |
Uses org-scope |
Uses enabled-scope |
Uses lab-scope |
