CXPREFTEMP – Preference Template

System
Case Carts (CX)
Prefix
CPT
Primary key
COMPANY, REQ-LOCATION, PREF-CODE, PROC-TYPE, PROC-CODE, PRACTNR-ID
Fields
28
Updated by
4 programs
Referenced by
38 programs

CXPREFTEMP is the Preference Template table in Lawson Case Carts (prefix CPT). It is indexed by COMPANY, REQ-LOCATION, PREF-CODE, PROC-TYPE, PROC-CODE, PRACTNR-ID (CPTSET1); alternate indexes: CPTSET2, CPTSET3, CPTSET4, CPTSET5 and CPTSET6. It is related 1:1 to CXPRACPROC, CXCOMPANY, CXPREFTEMP, CXPRACTNR, CXPROCEDR and RQLOC and 1:M to CXPTMPDIAG, CXPTMPITEM and CXTMPJOBS. It is updated by CX05.1, CX05.2, CX805 and CXMC.1 and referenced by CX100, CX20.1, CX20.2, CX20.4, CX20.5, CX205, CX207, CX220 and 30 more. The table has 28 fields, 6 indexes and 10 documented relations.

About CXPREFTEMP

The Preference Template file contains the header record for preference templates. This information is basic information related to preference templates. In addition to the information contained in this record, a preference template also has items (contained in the Template Items file), diagnostic codes (contained in Template Diagnostics file) and comments. The information in this record is used to provide default information for Case Cart Preference file records when preference templates are added to a case. A preference template record must be used to add a preference list to a case. There are two types of preference templates: general and practitioner- specific. Use CX05.1 (Preference Template) to add or delete individual records in this file.

Fields (28)

Column = COBOL field name without the CPT- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
CPT-COMPANY PK
COMPANY
Numeric 4This field contains the company number.CX05.1, CX05.2, CX805, CXMC.1
CPT-REQ-LOCATION PK
REQ_LOCATION
Alpha 5This 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
CPT-PREF-CODE PK
PREF_CODE
Alpha 8This field contains the template preference-list code. The code is assigned to cases in CX20.1 (Case Build). The code is used with other key fields to uniquely identify a template. Key fields include Company, Requesting Location, Practitioner ID (except for generic templates), Preference Code, Procedure Type, and Procedure Code. The code can be used to classify multiple procedures. For example, the code can be an abbreviation for a section of the CPT catalog, such as ANEST for Anesthesia or RESP for Respiratory. You could use the same preference code with varying key fields to define different templates for procedures in the same classification of the preference code. The code is assigned to cases in the Preference Code field of CX20.1 (Case Build).CX05.1, CX05.2, CX805, CXMC.1
CPT-PRACTNR-ID PK
PRACTNR_ID
Alpha 15This field contains the practitioner ID. If this field contains a value, this template becomes a practitioner-specific template. A blank means a generic template.CX05.1, CX05.2, CX805, CXMC.1
CPT-PROC-TYPE PK
PROC_TYPE
Alpha 8The 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
CPT-PROC-CODE PK
PROC_CODE
Alpha 8The 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
CPT-PREF-DESCRIPT
PREF_DESCRIPT
Alpha 15This field contains a short description for the procedure that may contain a more generic short description as an alternative to the standard procedure description.CX05.1, CX05.2, CX805
CPT-LAST-CHG-TIME
LAST_CHG_TIME
Numeric 4This field defines the time of the last change.CX05.1, CX05.2, CX805
CPT-LAST-CHG-DATE
LAST_CHG_DATE
Numeric 8 (yyyymmdd)This field defines the date of the last change.CX05.1, CX05.2, CX805
CPT-OPERATOR-ID
OPERATOR_ID
Alpha 10This field is used to store the login id of the person who entered the record.CX05.1, CX05.2, CX805
CPT-LAST-LINE-NBR
LAST_LINE_NBR
Numeric 6This field contains the line number.CX05.1, CX05.2, CX805
CPT-CLINICAL-CST
CLINICAL_CST
Signed 18.2This field contains the user-defined sum of all clinical costs for the procedure on the preference template. This is a user-defined subtotal of the Total Procedure Cost. The clinical costs represent costs not included in subtotals for distribution, supplies, and burden. This value is added manually and viewed in this field in CX05.1 (Preference Template). Note: You can view this value, using one of the following features: the Cost tab of CX05.1 (Preference Template), the Case Carts Analyzer, or a file editor.CX05.1, CX05.2, CX805
CPT-DIST-CST
DIST_CST
Signed 18.2This field contains the user-defined distribution costs for the procedure. This value is the sum of the distribution costs for the preference assigned to the template. This value is updated manually and viewed in this field in CX05.1 (Preference Template). Note: You can view this value, using one of the following features: the Cost tab of CX05.1 (Preference Template), the Case Carts Analyzer, or a file editor.CX05.1, CX05.2, CX805
CPT-SUPPLY-CST
SUPPLY_CST
Signed 18.2This field contains the user-defined supply costs for the procedure. This value is the sum of the extended item costs for the preference assigned to the template. Use CX05.1 (Preference Template) to update item costs and thereby automatically update this total. Note: You can view this value, using one of the following features: the Cost tab of CX05.1 (Preference Template), the Case Carts Analyzer, or a file editor.CX05.1, CX05.2, CX805
CPT-TOTAL-CST
TOTAL_CST
Signed 18.2This field contains the total of all costs for the procedure. The costs included are for clinical and distribution resources, supplies (items), and burden for jobs and nonsalaried resources. This value is updated each time an element is changed by adding, deleting, changing quantity, and so on. Note: You can view this value, using one of the following features: the Cost tab of CX05.1 (Preference Template), the Case Carts Analyzer, or a file editor.CX05.1, CX05.2, CX805
CPT-TOTAL-BURDEN
TOTAL_BURDEN
Signed 18.2This field contains the total burden costs associated with preference template burden codes. A burden is a resource with a measurable cost assigned to a case. The measurable cost can be an indirect cost, assigned to but not directly related to a case. Examples of burden are salaries, equipment, services, and other such as costs for capital depreciation or building management. This value is the sum of the extended burden costs for the preference template. When you add a burden code to the template, this total automatically increases. You can define this value directly or indirectly. Use CX05.1 (Preference Template) to update template burden costs directly and thereby automatically update this total. Use CX15.1 (Burden) to update nonsalary burden code (or salary burden codes as well if you do not use the Human Resources interface) and then add the updated burden code to the template. Before you run CX504 (HR Labor Import) and before you then add the latest burden codes to the preference template, make sure the job code costs are accurately defined in the Human Resources system. Note: Costs default to the Salary Range fields of CX15.1 (Burden) based on the Salary Range field definition in CX01.1 (Company).CX05.1, CX05.2, CX805
CPT-NORMAL-TIME
NORMAL_TIME
Numeric 4This field contains the typical (normal) time taken to perform a specific procedure.CX05.1, CX05.2, CX805
CPT-ACCT-CATEGORY
ACCT_CATEGORY
Alpha 5This field contains a valid account category as defined in the Activity Management system. Note: Use of the Activity Management system to track and report costs recorded in the Case Carts system is reserved for a future release.CX05.1, CX05.2, CX805
CPT-ACTIVITY
ACTIVITY
Alpha 15This field contains a valid activity code as defined in the Activity Management system. Note: Use of the Activity Management system to track and report costs recorded in the Case Carts system is reserved for a future release.CX05.1, CX05.2, CX805
CPT-PO-CODE
PO_CODE
Alpha 4This is the purchase order code.
CPT-ATN-OBJ-ID
ATN_OBJ_ID
Numeric 12This field contains a system-assigned identifier that provides access to data in related files.CX05.1, CX05.2, CX805
CPT-LST-TMPJOB-SEQ
LST_TMPJOB_SEQ
Numeric 3This field contains the record sequence number.CX05.1, CX05.2, CX805
CPT-STOCKLESS-FL
STOCKLESS_FL
Alpha 1This flag indicates whether any item on the procedure can be considered stockless. Note: Use of this field is reserved for a future release.
  • Y Yes
  • N No
CX05.1, CX05.2, CX805
CPT-HR-RATE-TOTAL
HR_RATE_TOTAL
Signed 18.2This field defines the hourly rate total.CX05.1, CX05.2, CX805
CPT-OT-RATE-TOTAL
OT_RATE_TOTAL
Signed 18.2This field defines the overtime rate total.CX05.1, CX05.2, CX805
CPT-LEADTIME-DAYS
LEADTIME_DAYS
Numeric 3This field contains the leadtime (in days). This value indicates whether to allocate the item immediately or at some future date. The Case Carts system calculates the future date using this field.
CPT-TEMPLATE-TYPE
TEMPLATE_TYPE
DerivedThis code is used to differentiate a template for the case cart module from a template set up by the Requisition system.
CPT-FLAT-FEE-FL
FLAT_FEE_FL
Alpha 1CX05.1, CX05.2, CX805

Indexes (6)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
CPTSET1COMPANY, REQ-LOCATION, PREF-CODE, PROC-TYPE, PROC-CODE, PRACTNR-IDPrimaryCX05.1, CX05.2, CX100, CX20.1, CX20.2, CX20.4, CX20.5, CX205 +22 more (list truncated in source)
CPTSET2COMPANY, REQ-LOCATION, PREF-CODE, PROC-TYPE, PROC-CODE, PRACTNR-IDSubsetWhere PRACTNR-ID = SpacesCX220
CPTSET3COMPANY, REQ-LOCATION, PROC-TYPE, PROC-CODE, PRACTNR-IDKeyChangeCX05.1, CX05.2, CX207, CX805
CPTSET4COMPANY, REQ-LOCATION, PREF-DESCRIPT, PREF-CODE, PROC-TYPE, PROC-CODE, PRACTNR-IDKeyChangeCX05.1, CX05.2, CX805
CPTSET5ATN-OBJ-IDKeyChange, SubsetWhere ATN-OBJ-ID != Zeroes
CPTSET6COMPANY, REQ-LOCATION, PROC-CODE, PROC-TYPE, PREF-CODE, PRACTNR-IDCX220

Relations

One to one (7) — lookups and parents

RelationTableRulesConditionField map
CcprocprocCXPRACPROCRequiredWhen CPT-PRACTNR-ID != SpacesCPT-COMPANYCPP-COMPANY, CPT-PRACTNR-IDCPP-PRACTNR-ID, CPT-PROC-TYPECPP-PROC-TYPE, CPT-PROC-CODECPP-PROC-CODE
CxcompanyCXCOMPANYRequiredCPT-COMPANYCXC-COMPANY
GenerictempCXPREFTEMPRequiredWhen CPT-PRACTNR-ID = SpacesCPT-COMPANYCPT-COMPANY, CPT-REQ-LOCATIONCPT-REQ-LOCATION, CPT-PROC-TYPECPT-PROC-TYPE, CPT-PROC-CODECPT-PROC-CODE, SpacesCPT-PRACTNR-ID
PractempCXPREFTEMPRequiredWhen CPT-PRACTNR-ID != SpacesCPT-COMPANYCPT-COMPANY, CPT-REQ-LOCATIONCPT-REQ-LOCATION, CPT-PROC-TYPECPT-PROC-TYPE, CPT-PROC-CODECPT-PROC-CODE, CPT-PRACTNR-IDCPT-PRACTNR-ID
PractitionerCXPRACTNRRequiredWhen CPT-PRACTNR-ID != SpacesCPT-PRACTNR-IDCPR-PRACTNR-ID
Procedure TypeCXPROCEDRRequiredCPT-PROC-TYPECPC-PROC-TYPE, CPT-PROC-CODECPC-PROC-CODE
Req LocRQLOCRequiredCPT-COMPANYRQL-COMPANY, CPT-REQ-LOCATIONRQL-REQ-LOCATION

One to many (3) — child tables

RelationTableRulesConditionField map
CxptmpdiagCXPTMPDIAGDelete CascadesCPT-COMPANYCTD-COMPANY, CPT-REQ-LOCATIONCTD-REQ-LOCATION, CPT-PREF-CODECTD-PREF-CODE, CPT-PROC-TYPECTD-PROC-TYPE, CPT-PROC-CODECTD-PROC-CODE, CPT-PRACTNR-IDCTD-PRACTNR-ID, CTD-DIAG-TYPE, CTD-DIAG-CODE
CxptmpitemCXPTMPITEMDelete CascadesCPT-COMPANYCTI-COMPANY, CPT-REQ-LOCATIONCTI-REQ-LOCATION, CPT-PREF-CODECTI-PREF-CODE, CPT-PROC-TYPECTI-PROC-TYPE, CPT-PROC-CODECTI-PROC-CODE, CPT-PRACTNR-IDCTI-PRACTNR-ID, CTI-LINE-NBR
CxtmpjobsCXTMPJOBSDelete CascadesCPT-COMPANYCTJ-COMPANY, CPT-REQ-LOCATIONCTJ-REQ-LOCATION, CPT-PREF-CODECTJ-PREF-CODE, CPT-PROC-TYPECTJ-PROC-TYPE, CPT-PROC-CODECTJ-PROC-CODE, CPT-PRACTNR-IDCTJ-PRACTNR-ID, CTJ-JOB-CODE, CTJ-SCHEDULE, CTJ-PAY-GRADE, CTJ-TMPJOB-SEQ

Programs

Updated by (4)

Referenced by (38)