CXPTMPDIAG – Template Diagnostics
- System
- Case Carts (CX)
- Prefix
CTD- Primary key
COMPANY,REQ-LOCATION,PREF-CODE,PROC-TYPE,PROC-CODE,PRACTNR-ID,DIAG-TYPE,DIAG-CODE- Fields
- 8
- Updated by
- 4 programs
- Referenced by
- 37 programs
CXPTMPDIAG is the Template Diagnostics table in Lawson Case Carts (prefix CTD). It is indexed by COMPANY, REQ-LOCATION, PREF-CODE, PROC-TYPE, PROC-CODE, PRACTNR-ID, DIAG-TYPE, DIAG-CODE (CTDSET1); alternate indexes: CTDSET2 and CTDSET3. It is related 1:1 to CXDIAGNOST and CXPREFTEMP. It is updated by CX05.1, CX05.2, CX805 and CXMC.1 and referenced by CX100, CX20.1, CX20.2, CX20.4, CX20.5, CX207, CX220, CX30.1 and 29 more. The table has 8 fields, 3 indexes and 2 documented relations.
About CXPTMPDIAG
The Template Diagnostics file contains the diagnostic code(s) associated with a preference template. These records are used to provide default item information in Preference Diagnostics file records when preference lists are added to a case. Use CX05.2 (Preference Template Diagnostics), chosen from CX05.1 (Preference Template), to add or delete records from this file. Each record in this file is related to one record in the following files except as noted: Preference Template (CXPREFTEMP), Case Cart Diagnostics (CXDIAGNOST), and, optionally, one or more records in the Preference Diagnostics file.
Fields (8)
Column = COBOL field name without the CTD- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
CTD-COMPANY PKCOMPANY | Numeric 4 | This field contains the company number. | CX05.1, CX05.2, CX805, CXMC.1 |
CTD-REQ-LOCATION PKREQ_LOCATION | Alpha 5 | This field contains the location requisitioning items and to be charged for the items. This location can be an inventory or noninventory location. This value appears as the to location on pick lists printed when you run CX100 (Pick List Print) and WH130 (Pick List Print). Valid values are A requesting location defined in RQ01.1 (Requesting Location) for the specified healthcare company. | CX05.1, CX05.2, CX805, CXMC.1 |
CTD-PREF-CODE PKPREF_CODE | Alpha 8 | This field contains the Preference Code from the preference template. | CX05.1, CX05.2, CX805, CXMC.1 |
CTD-PROC-TYPE PKPROC_TYPE | Alpha 8 | The procedure type is the first of two fields that uniquely identify a procedure. The procedure type can identify the code set to which the procedure code belongs. For example, you can use one of the following codes: - CPT-4 for a code in the Current Procedural Terminology listing compiled by the American Medical Association -HCPCS for a code in HCFA's (Health Care Financing Administration's) Common Procedure Coding System, or - A code defined for your organization's own procedures listing. | CX05.1, CX05.2, CX805, CXMC.1 |
CTD-PROC-CODE PKPROC_CODE | Alpha 8 | The procedure code is the second of two fields that uniquely identify a procedure. The procedure code is an identifier for a specific procedure within a procedure type. | CX05.1, CX05.2, CX805, CXMC.1 |
CTD-PRACTNR-ID PKPRACTNR_ID | Alpha 15 | This field contains the practitioner ID. | CX05.1, CX05.2, CX805, CXMC.1 |
CTD-DIAG-TYPE PKDIAG_TYPE | Alpha 8 | The diagnostic type is the first of two fields that uniquely identify a diagnosis. The diagnostic type can be used to identify the code set to which the diagnostic code belongs. For example, you might assign a type of HCPCS for a code in the Health Care Financing Administration's Common Procedure Coding System. | CX05.1, CX05.2, CX805 |
CTD-DIAG-CODE PKDIAG_CODE | Alpha 6 | The diagnostic code is the second of two fields used to uniquely identify a diagnosis. The diagnostic code is an identifier for a specific diagnosis within a diagnostic type. | CX05.1, CX05.2, CX805 |
Indexes (3)
Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
CTDSET1 | COMPANY, REQ-LOCATION, PREF-CODE, PROC-TYPE, PROC-CODE, PRACTNR-ID, DIAG-TYPE, DIAG-CODE | Primary | CX05.1, CX05.2, CX100, CX20.1, CX20.2, CX20.4, CX20.5, CX207 +22 more (list truncated in source) | |
CTDSET2 | COMPANY, REQ-LOCATION, PREF-CODE, PROC-TYPE, PROC-CODE, DIAG-TYPE, DIAG-CODE, PRACTNR-ID | — | ||
CTDSET3 | COMPANY, DIAG-TYPE, DIAG-CODE, REQ-LOCATION, PRACTNR-ID, PROC-TYPE, PROC-CODE | CX207 |
Relations
One to one (2) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Ccdiagnost | CXDIAGNOST | Required | CTD-DIAG-TYPE → CDI-DIAG-TYPE, CTD-DIAG-CODE → CDI-DIAG-CODE | |
| Cxpreftemp | CXPREFTEMP | Required | CTD-COMPANY → CPT-COMPANY, CTD-REQ-LOCATION → CPT-REQ-LOCATION, CTD-PREF-CODE → CPT-PREF-CODE, CTD-PROC-TYPE → CPT-PROC-TYPE, CTD-PROC-CODE → CPT-PROC-CODE, CTD-PRACTNR-ID → CPT-PRACTNR-ID |
Programs
Updated by (4)
- CX05.1 Preference Template
- CX05.2 Preference Template Diagnostics
- CX805 Template Card Conversion
- CXMC.1 Case cart mimic
Referenced by (37)
- CX100 Pick List Print
- CX20.1 Case Build
- CX20.2 Case Detail
- CX20.4 Substitute Items
- CX20.5 Insert line
- CX207 Preference List Value
- CX220 Case, Preference Listing
- CX30.1 Case Completion Feedback
- CX300 Preference List Purge
- CX506 HL7 Schedules Import Interface
- CXCP.1 Copy preference to case
- WH130 Pick List Print
- WH132 Batch Feedback
- WH190 Shipment Release
- WH222 Shipments In Process
- WH30.1 Picking Feedback by Document
- WH30.2 Picking Feedback by Shipment
- WH30.3 Picking by Batch
- WH30.4 Bin Sequence Picking Feedback
- WH31.1 Packing Feedback by Document
- WH31.2 Packing Feedback by Shipment
- WH31.3 Packing by Batch
- WH31.4 Bin Sequence Packing Feedback
- WH32.1 Shipping Feedback by Document
- WH32.2 Shipping Feedback by Shipment
- WH32.3 Shipping by Batch
- WH32.4 Bin Sequence Shipping Feedback
- WH32.5 Shipping Line Feedback
- WH33.5 Additional Shipment Information
- WH34.1 Component Bins
- WH34.2 Component Lots
- WH34.3 Component Serials
- WH34.4 Component UOMs
- WH40.1 Bill of Lading
- WH40.2 Bill of Lading Feedback
- WH520 Batch Feedback Interface
- WH830 Shipment Load Program