Eye module improvements with other minor improvements
[openemr.git] / library / edihistory / codes / edih_271_code_class.php
blobe0696bec684722b900b863cbe6c49fbed2f2314b
1 <?php
2 /*
3 * test_271_codes.php
4 *
5 * Copyright 2016 Kevin McCormick <kevin@kt61p>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
25 class edih_271_codes
28 //public $code271 = array();
29 private $code271 = array();
30 private $ds = '';
31 private $dr = '';
32 // the key_match array is a concept of matching code lists to
33 // segment elements when diferent segments are looking for the same
34 // code or reference lists
35 // -- a very tedious project and immediately put on hold
36 //public $key_match = array('HCR04'=>array('CRC02');
38 function __construct($component_separator, $repetition_separator)
41 // echo "class edih_271_codes ds=$component_separator dr=$repetition_separator".PHP_EOL;
43 $this->ds = $component_separator;
44 $this->dr = $repetition_separator;
46 $this->code271['BHT02'] = array(
47 '13'=>'Request',
48 '08'=>'Status',
49 '06'=>'Confirmation',
50 '11'=>'Response',
51 '00'=>'Original',
52 '18'=>'Reissue',
53 '01'=>'Cancellation',
54 '36'=>'Auth (Reply)'
57 // transaction type code
58 $this->code271['BHT06'] = array(
59 '18'=>'Response - no further updates',
60 '19'=>'Response - further updates to follow',
61 '31'=>'Subrogation Demand',
62 'AT'=>'Administrative Action',
63 'CH'=>'Chargeable',
64 'DG'=>'Response',
65 'RP'=>'Reporting',
66 'RT'=>'Spend Down',
67 'RU'=>'Medical Services Reservation',
68 'TH'=>'Receipt Acknowledgment'
71 // AAA reject reason code
72 $this->code271['AAA03'] = array(
73 '04'=>'Authorized quantity exceeded',
74 '15'=>'Required application data missing',
75 '33'=>'Input Errors',
76 '35'=>'Out of Network',
77 '41'=>'Authorization/Access restrictions',
78 '42'=>'Unable to respond at current time.',
79 '43'=>'Invalid/Missing provider information',
80 '44'=>'Invalid/Missing provider name',
81 '45'=>'Invalid/Missing provider speciality',
82 '46'=>'Invalid/Missing provider phone number',
83 '47'=>'Invalid/Missing provider state',
84 '48'=>'Invalid/Missing referring provider identification number',
85 '49'=>'Provider is not primary care physician',
86 '50'=>'Provider ineligible for inquiries',
87 '51'=>'Provider not on file',
88 '52'=>'Service dates not within provider plan enrollment',
89 '53'=>'Inquired benefit inconsistent with provider type',
90 '56'=>'Inappropriate date',
91 '57'=>'Invalid/Missing dates of service',
92 '58'=>'Invalid/Missing date of birth',
93 '60'=>'Date of birth follows date of service',
94 '61'=>'Date of death preceeds dates of service',
95 '62'=>'Date of service not within allowable inquiry period',
96 '63'=>'Date of service in future',
97 '64'=>'Invalid/Missing patient ID',
98 '65'=>'Invalid/Missing patient name',
99 '66'=>'Invalid/Missing patient gender code',
100 '67'=>'Patient not found',
101 '69'=>'Inconsistent with patient age.',
102 '70'=>'Inconsistent with patient gender.',
103 '71'=>'Patient birth date does not match that for the patient in the database',
104 '72'=>'Invalid/Missing subscriber/insured ID',
105 '73'=>'Invalid/Missing subscriber/insured name',
106 '74'=>'Invalid/Missing subscriber/insured gender code',
107 '75'=>'Subscriber/Insured not found',
108 '76'=>'Duplicate Subscriber/Insured ID number',
109 '77'=>'Subscriber found, patient not found',
110 '78'=>'Subscriber/Insured not in Group/Plan identified',
111 '79'=>'Invalid participant identification',
112 '97'=>'invalid or missing provider address',
113 'T4'=>'Payer name or identifier missing',
114 'T5'=>'Certification Information Missing',
115 '80'=>'No response received by clearinghouse',
116 '98'=>'Expiremental service or procedure.',
117 'AA'=>'Authorization number not found.',
118 'AE'=>'Requires primary care physician authorization.',
119 'AF'=>'Invalid/Missing diagnosis codes.',
120 'AG'=>'Invalid/Missing procedure codes.',
121 'AO'=>'Additional patient condition information required.',
122 'CI'=>'Certification information does not match patient.',
123 'E8'=>'Requires medical review.',
124 'IA'=>'Invalid authorization number format.',
125 'MA'=>'Missing authorization number.'
130 // follow-up action code
131 $this->code271['AAA04'] = array(
132 'C'=>'Please correct and resubmit',
133 'N'=>'Resubmission not allowed',
134 'P'=>'Please resubmit original transaction',
135 'R'=>'Resubmission allowed',
136 'S'=>'Do not resubmit; Inquiry initiated to a third party',
137 'W'=>'Please wait 30 days and resubmit',
138 'X'=>'Please wait 10 days and resubmit', // 'Y'=>'Do not resubmit; We will hold your request and respond again shortly'
139 'Y'=>'Do not resubmit; We will respond again shortly'
142 // provider PRV codes
143 $this->code271['PRV'] = array(
144 'AD'=>'Admitting',
145 'AT'=>'Attending',
146 'BI'=>'Billing',
147 'CO'=>'Consulting',
148 'CV'=>'Covering',
149 'H'=>'Hospital',
150 'HH'=>'Home Health Care',
151 'LA'=>'Laboratory',
152 'OT'=>'Other Physician',
153 'P1'=>'Pharmacy',
154 'PC'=>'Primary Care Physician',
155 'PE'=>'Performing',
156 'R'=>'Rural Health Clinic',
157 'RF'=>'Referring',
158 'SB'=>'Sunmitting',
159 'SK'=>'Skilled Nursing Facility',
160 'SU'=>'Supervising'
164 // REF codes
165 $this->code271['REF'] = array(
166 "18" => "Plan Number",
167 "1A" => "Blue Cross Provider Number",
168 "1B" => "Blue Shield Provider Number",
169 "1C" => "Medicare Provider Number",
170 "1D" => "Medicaid Provider Number",
171 "1G" => "Provider UPIN Number",
172 "1H" => "CHAMPUS Identification Number",
173 "1J" => "Facility ID Number",
174 "1K" => "Payer Control Number",
175 "1L" => "Group or Policy Number",
176 "1W" => "Member ID Number",
177 "1S" => "Ambulatory Patient Group (APG) Number",
178 "2U" => "Payer Identification Number",
179 "3H" => "Case Number",
180 "49" => "Family Unit Number",
181 "6P" => "Group Number",
182 "6R" => "Provider Control Number",
183 "9A" => "Repriced Claim Reference Number",
184 "9C" => "Adjusted Repriced Claim Reference Number",
185 "BB" => "Authorization Number",
186 "BLT" => "Billing Type",
187 "CE" => "Class of Contract code",
188 "CT" => "Provider Contract Number",
189 "D9" => "Clearinghouse ID Number",
190 "D3" => "Natl Assn Bds of Pharm Number",
191 "E9" => "Attachment Code",
192 "EA" => "Medical Record ID Number",
193 "EI" => "Employer's ID Number",
194 "EJ" => "Patient Account Number",
195 "EO" => "Submitter Identification Number",
196 "EV" => "Receiver Identificaton Number",
197 "F2" => "Version Identification Qualifier",
198 "F6" => "Health Ins Claim (HIC) Number",
199 "F8" => "Original Reference Number",
200 "FJ" => "Service Item Information",
201 "G1" => "Prior Authorization Number",
202 "G2" => "Provider Commercial Number",
203 "G3" => "Predetermination of Benefits ID Number",
204 "G5" => "Provider Site Number",
205 "GH" => "ID Card Serial Number",
206 "HI" => "Health Industry Number (HIN)",
207 "HJ" => "Identity Card Number",
208 "HPI" => "CMMS Natl Provider ID",
209 "IF" => "Issue Number",
210 "IG" => "Ins Policy Number",
211 "LU" => "Location Number",
212 "N5" => "Provider Plan Network ID Number",
213 "N6" => "Plan Network ID Number",
214 "N7" => "Facility Network IID Number",
215 "NF" => "Natl Assn of Ins Commissn (NAIC) Code",
216 "NQ" => "Medicaid Recipient ID Number",
217 "NT" => "Administrator's Reference Number",
218 "0B" => "State License Number",
219 "Q4" => "Prior Identifier Number",
220 "RB" => "Rate Code Number",
221 "SY" => "Social Security Number",
222 "TJ" => "Fed Tax ID Number",
223 "VV" => "Voucher Number",
224 "XZ" => "Prescription Number",
225 "Y4" => "Agency Claim Number",
226 "ZH" => "Carrier Assigned Reference Number"
230 // DTP date qualifiers
231 $this->code271['DTP'] = array(
232 'ABC'=>'Estimated Date of Birth',
233 'AAH'=>'Event',
234 '007'=>'Effective',
235 '036'=>'Expiration',
236 '050'=>'Received',
237 '096'=>'Discharge',
238 '102'=>'Issue',
239 '150'=>'Service period start',
240 '151'=>'Service period end',
241 '152'=>'Effective date of change',
242 '232'=>'Claim stmt period start',
243 '233'=>'Claim stmt period end',
244 '291'=>'Plan',
245 '303'=>'Maintenance effective',
246 '307'=>'Eligibility',
247 '318'=>'Added',
248 '340'=>'COBRA begin',
249 '341'=>'COBRA end',
250 '342'=>'Premium paid to date begin',
251 '343'=>'Premium paid to date end',
252 '346'=>'Plan begin',
253 '347'=>'Plan end',
254 '348'=>'Benefit date',
255 '349'=>'Benefit end',
256 '356'=>'Eligibility begin',
257 '357'=>'Eligibility end',
258 '382'=>'Enrollment',
259 '405'=>'Production',
260 '435'=>'Admission',
261 '431'=>'Onset of Current Symptoms or Illness',
262 '439'=>'Accident',
263 '442'=>'Date of death',
264 '458'=>'Certification',
265 '472'=>'Service',
266 '484'=>'Last Menstrual Period',
267 '539'=>'Policy effective',
268 '540'=>'Policy expiration',
269 '598'=>'Rejected',
270 '636'=>'Date of last update',
271 '771'=>'Status',
275 // entity identifier code --code source 237
276 // NM101 STC01-3 N101
277 $this->code271['NM101'] = array(
278 '03'=>'Dependent',
279 '13'=>'Contracted Service Provider',
280 '17'=>'Consultant\'s Office',
281 '1E'=>'Health Maintenance Organization (HMO)',
282 '1G'=>'Oncology Center',
283 '1H'=>'Kidney Dialysis Unit',
284 '1I'=>'Preferred Provider Organization (PPO)',
285 '1O'=>'Acute Care Hospital',
286 '1P'=>'Provider',
287 '1Q'=>'Military facility',
288 '1R'=>'University, College, or School',
289 '1S'=>'Outpatient Surgicenter',
290 '1T'=>'Physician, Clinic or Group Practice',
291 '1U'=>'Long Term Care Facility',
292 '1V'=>'Extended Care Facility',
293 '1W'=>'Psychiatric Health Facility',
294 '1X'=>'Laboratory',
295 '1Y'=>'Retail Pharmacy',
296 '2A'=>'Federal, State, County or City Facility',
297 '2B'=>'Third-Party Administrator',
298 '2I'=>'Church Operated Facility',
299 '2P'=>'Public Health Service Facility',
300 '2Q'=>'Veterans Administration Facility',
301 '4M'=>'Adult Day Care Program Facility',
302 '4R'=>'Geriatric Clinics',
303 '5C'=>'Blood Bank',
304 '5T'=>'X-Ray Radiation Therapy Unit',
305 '5U'=>'CT Scanner Unit',
306 '5V'=>'Diagnostic Radioisotope Facility',
307 '5W'=>'Magnetic Resonance Imaging (MRI) Facility',
308 '5X'=>'Ultrasound Unit',
309 '5Y'=>'Rehabilitation Inpatient Unit',
310 '5Z'=>'Rehabilitation Outpatient Services',
311 '36'=>'Employer',
312 '40'=>'Receiver',
313 '41'=>'Submitter',
314 '45'=>'Drop-off Location',
315 '61'=>'Performed At',
316 '6A'=>'Reproductive Health Services',
317 '6G'=>'Sports Medicine Clinic/Services',
318 '6O'=>'Physical Therapy Services',
319 '6S'=>'Women\'s Health Center/Services',
320 '6Y'=>'Case Manager',
321 '70'=>'Prior Incorrect Insured',
322 '71'=>'Attending Physician',
323 '72'=>'Operating Physician',
324 '73'=>'Other Physician',
325 '74'=>'Corrected Insured',
326 '75'=>'Participant',
327 '77'=>'Service Location',
328 '82'=>'Rendering Provider',
329 '85'=>'Billing Provider',
330 '87'=>'Pay-to Provider',
331 'AAG'=>'Ground Ambulance Services',
332 'AAJ'=>'Admitting Services',
333 'AAK'=>'Primary Surgeon',
334 'AAL'=>'Medical Nurse',
335 'AAM'=>'Cardiac Rehabilitation Services',
336 'AAN'=>'Skilled Nursing Services',
337 'AAO'=>'Observation Room Services',
338 'AAQ'=>'Anesthesiology Services',
339 'CA'=>'Carrier',
340 'DD'=>'Assistant Surgeon',
341 'DK'=>'Ordering Physician',
342 'DN'=>'Referring Provider',
343 'EXS'=>'Ex-spouse',
344 'FA'=>'Facility',
345 'FS'=>'Final Scheduled Destination',
346 'G3'=>'Clinic',
347 'GB'=>'Other Insured',
348 'GD'=>'Guardian',
349 'GG'=>'Intermediary',
350 'GM'=>'Spouse Insured',
351 'GP'=>'Gateway Provider',
352 'GW'=>'Group',
353 'HF'=>'HPSA Facility',
354 'HH'=>'Home Health Agency',
355 'I3'=>'Independent Physicians Association (IPA)',
356 'IL'=>'Insured or Subscriber',
357 'IR'=>'Self Insured',
358 'LR'=>'Legal Representative',
359 'MSC'=>'Mammography Screening Center',
360 'NCT'=>'Name Changed To',
361 'ND'=>'Next Destination',
362 'NZ'=>'Primary Physician',
363 'OC'=>'Origin Carrier',
364 'OO'=>'Alternate Insurer',
365 'ORI'=>'Original Name',
366 'P2'=>'Primary Insured or Subscriber',
367 'P3'=>'Primary Care Provider',
368 'P4'=>'Prior Insurance Carrier',
369 'P5'=>'Plan Sponsor',
370 'PE'=>'Payee',
371 'PR'=>'Payer',
372 'PRP'=>'Primary Payer',
373 'PW'=>'Pickup Address',
374 'QB'=>'Purchase Service Provider',
375 'QC'=>'Patient',
376 'QV'=>'Group Practice',
377 'R3'=>'Next Scheduled Destination',
378 'SEP'=>'Secondary Payer',
379 'SJ'=>'Service Provider',
380 'TT'=>'Transfer To',
381 'TTP'=>'Tertiary Payer',
382 'VER'=>'Party Performing Verification',
383 'VN'=>'Vendor',
384 'VY'=>'Organization Completing Configuration Change',
385 'X3'=>'Utilization Management Organization',
386 'X4'=>'Spouse',
387 'Y2'=>'Managed Care Organization'
391 // entity ID type code
392 // NM108 N101
393 $this->code271['NM108'] = array(
394 "AD"=>"BCBS Assoc Plan Code",
395 "NI"=>"NAIC ID",
396 "24"=>"Employer ID Number (EIN)",
397 "34"=>"Social Security No",
398 "46"=>"Electronic Transmiter ID (ETIN)",
399 "BD"=>"Blue Cross Provider No",
400 "BS"=>"Blue Shield Provider No",
401 "C"=>"Insured's Changed Unique ID",
402 "PC"=>"Provider Commercial No",
403 "FI"=>"Federal Taxpayer ID",
404 "II"=>"Standard Unique Health ID",
405 "HN"=>"Health Ins Claim No",
406 "MC"=>"Medicaid Provider No",
407 "MI"=>"Member ID",
408 "MR"=>"Medicaid Recipient ID No",
409 "NI"=>"NAIC Identification",
410 "PI"=>"Payer ID",
411 "PP"=>"Pharmacy Processor No",
412 "UP"=>"UPIN",
413 "SV"=>"Service Provider Number",
414 "XV"=>"CMS Plan ID",
415 "XX"=>"CMS National ID"
418 // entity relationship code
419 $this->code271['NM110'] = array(
420 '01'=>'Parent',
421 '02'=>'Child',
422 '27'=>'Domestic Partner',
423 '41'=>'Spouse',
424 '48'=>'Employee',
425 '65'=>'Other',
426 '72'=>'Unknown'
429 // contact number identifier
430 $this->code271['PER03'] = array(
431 'ED'=>'EDI Access Number',
432 'EM'=>'Electronic Mail',
433 'EX'=>'Telephone Extension',
434 'FX'=>'Facsimile',
435 'TE'=>'Telephone',
436 'UR'=>'URL'
439 // contact type identifier
440 $this->code271['PER01'] = array(
441 'CX'=>'Cliams Office',
442 'BL'=>'Technical Dept',
443 'IC'=>'Information Contact',
446 // MPI qualifiers Military Service
447 // the MPI03 Service affiliation qualifiers have 'SB' prepended
448 $this->code271['MPI'] = array(
449 'A'=>'Partial',
450 'C'=>'Current',
451 'L'=>'Latest',
452 'O'=>'Oldest',
453 'P'=>'Prior',
454 'S'=>'Second most current',
455 'T'=>'Third most current',
456 'AE'=>'Active reserve',
457 'AO'=>'Active military-overseas',
458 'AS'=>'Academy student',
459 'AT'=>'Presidential appointee',
460 'CC'=>'Contractor',
461 'DD'=>'Dishonorably discharges',
462 'HD'=>'Honorably discharges',
463 'IR'=>'Inactive reserve',
464 'LX'=>'Leave of absence: military',
465 'PE'=>'Plan to enlist',
466 'RE'=>'REcommissioned',
467 'RM'=>'Retired military-overseas',
468 'RR'=>'Retired without recall',
469 'RU'=>'REtired military-USA',
470 'SBA'=>'Air Force',
471 'SBB'=>'Air Force Reserves',
472 'SBC'=>'Army',
473 'SBD'=>'Army Reserves',
474 'SBE'=>'Coast Guard',
475 'SBF'=>'Marine Corps',
476 'SBG'=>'Marine Corps Reserves',
477 'SBH'=>'National Guard',
478 'SBI'=>'Navy',
479 'SBJ'=>'Navy Reserves',
480 'SBK'=>'Other',
481 'SBL'=>'Peace Corp',
482 'SBM'=>'Regular Armed Forces',
483 'SBN'=>'Reserves',
484 'SBO'=>'U.S. Public Health Service',
485 'SBQ'=>'Foreign Military',
486 'SBR'=>'American Red Cross',
487 'SBS'=>'Department of Defvense',
488 'SBU'=>'Unites Services Organization',
489 'SBW'=>'Military Sealift Command',
490 'A1'=>'Admiral',
491 'A2'=>'Airman',
492 'A3'=>'Airman First Class',
493 'B1'=>'Basic Airman',
494 'B2'=>'Brigadier General',
495 'C1'=>'Captain',
496 'C2'=>'Chief Master Sergeant',
497 'C3'=>'Chief Petty Officer',
498 'C4'=>'Chief Warrant',
499 'C5'=>'Colonel',
500 'C6'=>'Commander',
501 'C7'=>'Commodore',
502 'C8'=>'Corporal',
503 'C9'=>'Corporal Specialist 4',
504 'E1'=>'Ensign',
505 'F1'=>'First Lieutenant',
506 'F2'=>'First Sergeant',
507 'F3'=>'First Sergeant-Master Sergeant',
508 'F4'=>'Fleet Admiral',
509 'G1'=>'General',
510 'G4'=>'Gunnery Sergeant',
511 'L1'=>'Lance Corporal',
512 'L2'=>'Lieutenant',
513 'L3'=>'Lieutenant Colonel',
514 'L4'=>'Lieutenant Commander',
515 'L5'=>'Lieutenant General',
516 'L6'=>'Lieutenant Junior Grade',
517 'M1'=>'Major',
518 'M2'=>'Major General',
519 'M3'=>'Master Chief Petty Officer',
520 'M4'=>'Master Gunnery Sergeant Major',
521 'M5'=>'Master Sergeant',
522 'M6'=>'Master Sergeant Specialist 8',
523 'P1'=>'Petty Officer First Class',
524 'P2'=>'Petty Officer Second Class',
525 'P3'=>'Petty Officer Third Class',
526 'P4'=>'Private',
527 'P5'=>'Private First Class',
528 'R1'=>'Rear Admiral',
529 'R2'=>'Recruit',
530 'S1'=>'Seaman',
531 'S2'=>'Seaman Apprentice',
532 'S3'=>'Seaman Recruit',
533 'S4'=>'Second Lieutenant',
534 'S5'=>'Senior Chief Petty Officer',
535 'S6'=>'Senior Master Sergeant',
536 'S7'=>'Sergeant',
537 'S8'=>'Sergeant First Class Specialist 7',
538 'S9'=>'Sergeant Major Specialist 9',
539 'SA'=>'Sergeant Specialist 5',
540 'SB'=>'Staff Sergeant',
541 'SC'=>'Staff Sergeant Specialist 6',
542 'T1'=>'Technical Sergeant',
543 'V1'=>'Vice Admiral',
544 'W1'=>'Warrant Officer'
547 // eligibility or benifit information code
548 $this->code271['EB01'] = array(
549 '1'=>'Active Coverage',
550 '2'=>'Active-Full Risk Capitation',
551 '3'=>'Active-Services Capitated', // '4'=>'Active - Services Capitated to Primary Care Physician',
552 '4'=>'Active-Capitated to PCP',
553 '5'=>'Active-Pending Investigation',
554 '6'=>'Inactive', // '7'=>'Inactive - Pending Eligibility Update',
555 '7'=>'Inactive-Pending Elig Update',
556 '8'=>'Inactive-Pending Investigation',
557 'A'=>'Co-Insurance',
558 'B'=>'Co-Payment',
559 'C'=>'Deductible',
560 'D'=>'Benefit Description',
561 'E'=>'Exclusions',
562 'F'=>'Limitations',
563 'G'=>'Out of Pocket (Stop Loss)',
564 'H'=>'Unlimited',
565 'I'=>'Non-Covered',
566 'J'=>'Cost Containment',
567 'K'=>'Reserve',
568 'L'=>'Primary Care Provider',
569 'M'=>'Pre-existing Condition',
570 'N'=>'Services Restricted to Following Provider',
571 'O'=>'Not Deemed a Medical Necessity',
572 'P'=>'Benefit Disclaimer',
573 'Q'=>'Second Surgical Opinion Required',
574 'R'=>'Other or Additional Payer',
575 'S'=>'Prior Year(s) History',
576 'T'=>'Card(s) Reported Lost/Stolen', // 'U'=>'Contact Following Entity for Eligibility or Benefit Information',
577 'U'=>'Contact Entity for Information',
578 'V'=>'Cannot Process',
579 'W'=>'Other Source of Data',
580 'X'=>'Health Care Facility',
581 'Y'=>'Spend Down',
582 'CB'=>'Coverage Basis',
583 'MC'=>'Managed Care Coordinator'
586 // coverage level code
587 $this->code271['EB02'] = array(
588 'CHD'=>'Children Only',
589 'DEP'=>'Dependents Only',
590 'E1D'=>'Employee and One Dependent',
591 'E2D'=>'Employee and Two Dependents',
592 'E3D'=>'Employee and Three Dependents',
593 'E5D'=>'Employee and One or More Dependents',
594 'E6D'=>'Employee and Two or More Dependents',
595 'E7D'=>'Employee and Three or More Dependents',
596 'E8D'=>'Employee and Four or More Dependents',
597 'E9D'=>'Employee and Five or More Dependents',
598 'ECH'=>'Employee and Children',
599 'EMP'=>'Employee Only',
600 'ESP'=>'Employee and Spouse',
601 'FAM'=>'Family',
602 'IND'=>'Individual',
603 'SPC'=>'Spouse and Children',
604 'SPO'=>'Spouse Only',
605 'TWO'=>'Two Party'
608 // Health Care Services Type Codes
609 // ASC X12 External Code Source 958 LAST UPDATED 3/1/2016
610 $this->code271['EB03'] = array(
611 "1" => "Medical Care",
612 "2" => "Surgical",
613 "3" => "Consultation",
614 "4" => "Diagnostic X-Ray",
615 "5" => "Diagnostic Lab",
616 "6" => "Radiation Therapy",
617 "7" => "Anesthesia",
618 "8" => "Surgical Assistance",
619 "10" => "Blood",
620 "11" => "Durable Medical Equipment Used",
621 "12" => "Durable Medical Equipment Purchased",
622 "14" => "Renal Supplies",
623 "17" => "Pre-Admission Testing",
624 "18" => "Durable Medical Equipment Rental",
625 "19" => "Pneumonia Vaccine",
626 "20" => "Second Surgical Opinion",
627 "21" => "Third Surgical Opinion",
628 "22" => "Social Work",
629 "23" => "Diagnostic Dental",
630 "24" => "Periodontics",
631 "25" => "Restorative",
632 "26" => "Endodontics",
633 "27" => "Maxillofacial Prosthetics",
634 "28" => "Adjunctive Dental Services",
635 "30" => "Health Benefit Plan Coverage",
636 "32" => "Plan Waiting Period",
637 "33" => "Chiropractic",
638 "34" => "Chiropractic Modality",
639 "35" => "Dental Care",
640 "36" => "Dental Crowns",
641 "37" => "Dental Accident",
642 "38" => "Orthodontics",
643 "39" => "Prosthodontics",
644 "40" => "Oral Surgery",
645 "41" => "Preventive Dental",
646 "42" => "Home Health Care",
647 "43" => "Home Health Prescriptions",
648 "45" => "Hospice",
649 "46" => "Respite Care",
650 "47" => "Hospitalization",
651 "48" => "Hospital - Inpatient",
652 "49" => "Hospital - Room and Board",
653 "50" => "Hospital - Outpatient",
654 "54" => "Long Term Care",
655 "55" => "Major Medical",
656 "56" => "Medically Related Transportation",
657 "60" => "General Benefits",
658 "61" => "In-vitro Fertilization",
659 "62" => "MRI Scan",
660 "63" => "Donor Procedures",
661 "64" => "Acupuncture",
662 "65" => "Newborn Care",
663 "66" => "Pathology",
664 "67" => "Smoking Cessation",
665 "68" => "Well Baby Care",
666 "69" => "Maternity",
667 "70" => "Transplants",
668 "71" => "Audiology",
669 "72" => "Inhalation Therapy",
670 "73" => "Diagnostic Medical",
671 "74" => "Private Duty Nursing",
672 "75" => "Prosthetic Device",
673 "76" => "Dialysis",
674 "77" => "Otology",
675 "78" => "Chemotherapy",
676 "79" => "Allergy Testing",
677 "80" => "Immunizations",
678 "81" => "Routine Physical",
679 "82" => "Family Planning",
680 "83" => "Infertility",
681 "84" => "Abortion",
682 "85" => "HIV - AIDS Treatment",
683 "86" => "Emergency Services",
684 "87" => "Cancer Treatment",
685 "88" => "Pharmacy",
686 "89" => "Free Standing Prescription Drug",
687 "90" => "Mail Order Prescription Drug",
688 "91" => "Brand Name Prescription Drug",
689 "92" => "Generic Prescription Drug",
690 "93" => "Podiatry",
691 "98" => "Professional (Physician) Visit - Office",
692 "A4" => "Psychiatric",
693 "A6" => "Psychotherapy",
694 "A7" => "Psychiatric - Inpatient",
695 "A8" => "Psychiatric - Outpatient",
696 "A9" => "Rehabilitation",
697 "AB" => "Rehabilitation - Inpatient",
698 "AC" => "Rehabilitation - Outpatient",
699 "AD" => "Occupational Therapy",
700 "AE" => "Physical Medicine",
701 "AF" => "Speech Therapy",
702 "AG" => "Skilled Nursing Care",
703 "AI" => "Substance Abuse",
704 "AJ" => "Alcoholism Treatment",
705 "AK" => "Drug Addiction",
706 "AL" => "Optometry",
707 "AM" => "Frames",
708 "AO" => "Lenses",
709 "AP" => "Routine Eye Exam",
710 "AQ" => "Nonmedically Necessary Physical (e.g., insurance app, pilot license, employment or school)",
711 "AR" => "Experimental Drug Therapy",
712 "B1" => "Burn Care",
713 "B2" => "Brand Name Prescription Drug - Formulary",
714 "B3" => "Brand Name Prescription Drug - Non-Formulary",
715 "BA" => "Independent Medical Evaluation",
716 "BB" => "Psychiatric Treatment Partial Hospitalization",
717 "BC" => "Day Care (Psychiatric)",
718 "BD" => "Cognitive Therapy",
719 "BE" => "Massage Therapy",
720 "BF" => "Pulmonary Rehabilitation",
721 "BG" => "Cardiac Rehabilitation",
722 "BH" => "Pediatric",
723 "BI" => "Nursery Room and Board",
724 "BK" => "Orthopedic",
725 "BL" => "Cardiac",
726 "BM" => "Lymphatic",
727 "BN" => "Gastrointestinal",
728 "BP" => "Endocrine",
729 "BQ" => "Neurology",
730 "BT" => "Gynecological",
731 "BU" => "Obstetrical",
732 "BV" => "Obstetrical/Gynecological",
733 "BW" => "Mail Order Prescription Drug: Brand Name",
734 "BX" => "Mail Order Prescription Drug: Generic",
735 "BY" => "Physician Visit - Sick",
736 "BZ" => "Physician Visit - Well",
737 "C1" => "Coronary Care",
738 "CK" => "Screening X-ray",
739 "CL" => "Screening laboratory",
740 "CM" => "Mammogram, High Risk Patient",
741 "CN" => "Mammogram, Low Risk Patient",
742 "CO" => "Flu Vaccination",
743 "CP" => "Eyewear Accessories",
744 "CQ" => "Case Management",
745 "DG" => "Dermatology",
746 "DM" => "Durable Medical Equipment",
747 "DS" => "Diabetic Supplies",
748 "E0" => "Allied Behavioral Analysis Therapy",
749 "E1" => "Non-Medical Equipment (non DME)",
750 "E2" => "Psychiatric Emergency",
751 "E3" => "Step Down Unit",
752 "E4" => "Skilled Nursing Facility Head Level of Care",
753 "E5" => "Skilled Nursing Facility Ventilator Level of Care",
754 "E6" => "Level of Care 1",
755 "E7" => "Level of Care 2",
756 "E8" => "Level of Care 3",
757 "E9" => "Level of Care 4",
758 "E10" => "Radiographs",
759 "E11" => "Diagnostic Imaging",
760 "E12" => "Basic Restorative - Dental",
761 "E13" => "Major Restorative - Dental",
762 "E14" => "Fixed Prosthodontics",
763 "E15" => "Removable Prosthodontics",
764 "E16" => "Intraoral Images - Complete Series",
765 "E17" => "Oral Evaluation",
766 "E18" => "Dental Prophylaxis",
767 "E19" => "Panoramic Images",
768 "E20" => "Sealants",
769 "E21" => "Flouride Treatments",
770 "E22" => "Dental Implants",
771 "E23" => "Temporomandibular Joint Dysfunction",
772 "E24" => "Retail Pharmacy Prescription Drug",
773 "E25" => "Long Term Care Pharmacy",
774 "E26" => "Comprehensive Medication Therapy Management Review",
775 "E27" => "Targeted Medication Therapy Management Review",
776 "E28" => "Dietary/Nutritional Services",
777 "E29" => "Technical Cardiac Rehabilitation Services Component",
778 "E30" => "Professional Cardiac Rehabilitation Services Component",
779 "E31" => "Professional Intensive Cardiac Rehabilitation Services Component",
780 "E32" => "Intensive Cardiac Rehabilitation - Technical Component",
781 "E33" => "Intensive Cardiac Rehabilitation",
782 "E34" => "Pulmonary Rehabilitation - Technical Component",
783 "E35" => "Pulmonary Rehabilitation - Professional Component",
784 "E36" => "Convenience Care",
785 "E37" => "Telemedicine",
786 "E38" => "Pharmacist Services",
787 "E39" => "Diabetic Education",
788 "EA" => "Preventive Services",
789 "EB" => "Specialty Pharmacy",
790 "EC" => "Durable Medical Equipment New",
791 "ED" => "CAT Scan",
792 "EE" => "Ophthalmology",
793 "EF" => "Contact Lenses",
794 "F1" => "Medical Coverage",
795 "F2" => "Social Work Coverage",
796 "F3" => "Dental Coverage",
797 "F4" => "Hearing Coverage",
798 "F5" => "Prescription Drug Coverage",
799 "F6" => "Vision Coverage",
800 "F7" => "Orthodontia Coverage",
801 "F8" => "Mental Health Coverage",
802 "GF" => "Generic Prescription Drug - Formulary",
803 "GN" => "Generic Prescription Drug - Non-Formulary",
804 "GY" => "Allergy",
805 "IC" => "Intensive Care",
806 "MH" => "Mental Health",
807 "NI" => "Neonatal Intensive Care",
808 "ON" => "Oncology",
809 "PE" => "Positron Emission Tomography (PET) Scan",
810 "PT" => "Physical Therapy",
811 "PU" => "Pulmonary",
812 "RN" => "Renal",
813 "RT" => "Residential Psychiatric Treatment",
814 "SMH" => "Serious Mental Health",
815 "TC" => "Transitional Care",
816 "TN" => "Transitional Nursery Care",
817 "UC" => "Urgent Care"
820 // insurance type codes
821 $this->code271['EB04'] = array(
822 'D'=>'Disability',
823 //'12'=>'Medicare Secondary Working Aged Beneficiary or Spouse with Employer Group Health Plan',
824 //'13'=>'Medicare Secondary End-Stage Renal Disease Beneficiary in the 12 month coordination period with an employer\'s group health plan',
825 //'14'=>'Medicare Secondary, No-fault Insurance including Auto is Primary',
826 //'15'=>'Medicare Secondary Worker\'s Compensation',
827 //'16'=>'Medicare Secondary Public Health Service (PHS)or Other Federal Agency',
828 //'41'=>'Medicare Secondary Black Lung',
829 //'42'=>'Medicare Secondary Veteran\'s Administration',
830 //'43'=>'Medicare Secondary Disabled Beneficiary Under Age 65 with Large Group Health Plan (LGHP)',
831 //'47'=>'Medicare Secondary, Other Liability Insurance is Primary',
832 '12'=>'Medicare Secondary',
833 '13'=>'Medicare Secondary (ESRD)',
834 '14'=>'Medicare Secondary (No-fault Primary)',
835 '15'=>'Medicare Secondary (WC)',
836 '16'=>'Medicare Secondary (PHS)',
837 '41'=>'Medicare Secondary (Black Lung)',
838 '42'=>'Medicare Secondary (VA)',
839 '43'=>'Medicare Secondary (LGHP)',
840 '47'=>'Medicare Secondary, Liability Ins Primary',
841 'AP'=>'Auto Insurance Policy',
842 'C1'=>'Commercial', // 'CO'=>'Consolidated Omnibus Budget Reconciliation Act (COBRA)',
843 'CO'=>'(COBRA)',
844 'CP'=>'Medicare Conditionally Primary',
845 'DB'=>'Disability Benefits',
846 'EP'=>'Exclusive Provider Organization',
847 'FF'=>'Family or Friends',
848 'GP'=>'Group Policy', //'HM'=>'Health Maintenance Organization (HMO)',
849 'HM'=>'(HMO)', //'HN'=>'Health Maintenance Organization (HMO) - Medicare Risk',
850 'HN'=>'(HMO)-Medicare Risk', //'HS'=>'Special Low Income Medicare Beneficiary',
851 'HS'=>'Special Low Income Medicare',
852 'IN'=>'Indemnity',
853 'IP'=>'Individual Policy',
854 'LC'=>'Long Term Care',
855 'LD'=>'Long Term Policy',
856 'LI'=>'Life Insurance',
857 'LT'=>'Litigation',
858 'MA'=>'Medicare Part A',
859 'MB'=>'Medicare Part B',
860 'MC'=>'Medicaid',
861 'MH'=>'Medigap Part A',
862 'MI'=>'Medigap Part B',
863 'MP'=>'Medicare Primary',
864 'OT'=>'Other', //'PE'=>'Property Insurance - Personal',
865 'PE'=>'Property Ins-Personal',
866 'PL'=>'Personal', //'PP'=>'Personal Payment (Cash - No Insurance)',
867 'PP'=>'Cash (No Ins)', //'PR'=>'Preferred Provider Organization (PPO)',
868 'PR'=>'(PPO)',
869 'PS'=>'Point of Service (POS)',
870 'QM'=>'Qualified Medicare Beneficiary',
871 'RP'=>'Property Insurance-Real',
872 'SP'=>'Supplemental Policy', //'TF'=>'Tax Equity Fiscal Responsibility Act (TEFRA)',
873 'TF'=>'(TEFRA)',
874 'WC'=>'Workers Compensation',
875 'WU'=>'Wrap Up Policy'
878 // time period qualifier
879 $this->code271['EB06'] = array(
880 '1'=>'Month',
881 '2'=>'Year',
882 '6'=>'Hour',
883 '7'=>'Day',
884 '21'=>'Years',
885 '22'=>'Service Year',
886 '23'=>'Calendar Year',
887 '24'=>'Year to Date',
888 '25'=>'Contract',
889 '26'=>'Episode',
890 '27'=>'Visit',
891 '28'=>'Outlier',
892 '29'=>'Remaining',
893 '30'=>'Exceeded',
894 '31'=>'Not Exceeded',
895 '33'=>'Lifetime Remaining',
896 '34'=>'Month',
897 '35'=>'Week',
898 '36'=>'Admission', //'A'=>'Hourly Appurtenance Units (Hours of Enhancement/Addition to Equipment)',
899 'A'=>'Hourly Appurtenance Units',
900 'D'=>'Daily Time Units',
901 'H'=>'Hourly Time Units',
902 'O'=>'Other Time Units'
905 // quantity type qualifier
906 $this->code271['EB09'] = array(
907 '8H'=>'Minimum',
908 '99'=>'Quantity Used',
909 'CA'=>'Covered-Actual',
910 'CE'=>'Covered-Estimated',
911 'D3'=>'Number of Co-insurance Days',
912 'DB'=>'Deductible Blood Units',
913 'DY'=>'Days',
914 'HS'=>'Hours',
915 'LA'=>'Life-time Reserve-Actual',
916 'LE'=>'Life-time Reserve-Estimated',
917 'M2'=>'Maximum',
918 'MN'=>'Month',
919 'P6'=>'Number of Services or Procedures',
920 'QA'=>'Quantity Approved',
921 'S7'=>'Age, High Value',
922 'S8'=>'Age, Low Value',
923 'VS'=>'Visits',
924 'YY'=>'Years'
927 // authorization required code
928 $this->code271['EB11'] = array(
929 'N'=>'Pre-Auth: No',
930 'U'=>'Pre-Auth: Unknown',
931 'Y'=>'Pre-Auth: Yes'
934 // in-network status
935 $this->code271['EB12'] = array(
936 'N'=>'In Network: No',
937 'U'=>'In Network: Unknown',
938 'W'=>'In Network: N/A',
939 'Y'=>'In Network: Yes'
942 // product/service id qualifier
943 $this->code271['EB13'] = array(
944 'AD'=>'Am Dental Assoc Codes',
945 'ER'=>'Jurisdiction Specific',
946 'CJ'=>'CPT Codes',
947 'HC'=>'HCPCS Codes',
948 'HP'=>'HIPPS SNF Rate Code',
949 'ID'=>'ICD-9-CM-Procedure',
950 'IV'=>'(HIEC) Product/Service Code',
951 'N4'=>'Natl Drug Code 5-4-2 Fmt',
952 'N6'=>'Natl Health Related Item Code in 4-6 Fmt',
953 'NU'=>'Natl Uniform Billing Committee (NUBC) UB92',
954 'UI'=>'U.P.C. Consumer Pkg Code (1-5-5)',
955 'WK'=>'Advanced Billing Concepts (ABC) Codes',
956 'ZZ'=>'Mutually Defined'
959 // quantity qualifier - unit or basis copde
960 $this->code271['HSD01'] = array(
961 'DY'=>'Days',
962 'FL'=>'Units',
963 'HS'=>'Hours',
964 'MN'=>'Month',
965 'VS'=>'Visit',
966 'DA'=>'Days',
967 'MO'=>'Months',
968 'WK'=>'Week',
969 'YR'=>'Years'
972 // delivery frequency code
973 $this->code271['HSD07'] = array(
974 '1'=>'1st Week of Month',
975 '2'=>'2nd Week of Month',
976 '3'=>'3rd Week of Month',
977 '4'=>'4th Week of Month',
978 '5'=>'5th Week of Month',
979 '6'=>'1st & 3rd Weeks of Month',
980 '7'=>'2nd & 4th Weeks of Month',
981 '8'=>'1st Working Day of Period',
982 '9'=>'Last Working Day of Period',
983 'A'=>'Mon through Fri',
984 'B'=>'Mon through Sat',
985 'C'=>'Mon through Sun',
986 'D'=>'Monday',
987 'E'=>'Tuesday',
988 'F'=>'Wednesday',
989 'G'=>'Thursday',
990 'H'=>'Friday',
991 'J'=>'Saturday',
992 'K'=>'Sunday',
993 'L'=>'Mon through Thur',
994 'M'=>'Immediately',
995 'N'=>'As Directed',
996 'O'=>'Daily Mon. through Fri.',
997 'P'=>'1/2 Mon & 1/2 Thurs',
998 'Q'=>'1/2 Tue & 1/2 Thur',
999 'R'=>'1/2 Wed & 1/2 Fri',
1000 'S'=>'Once Anytime Mon through Fri',
1001 'T'=>'1/2 Tue & 1/2 Fri',
1002 'U'=>'1/2 Mon. & 1/2 Wed',
1003 'V'=>'1/3 Mon, 1/3 Wed, 1/3 Fri',
1004 'W'=>'When Necessary',
1005 'X'=>'1/2 By Wed, Bal. By Fri',
1006 'Y'=>'None/Cancel/Override',
1007 'Z'=>'Mutually Defined',
1008 'SA'=>'Sun, Mon, Thur, Fri, Sat',
1009 'SB'=>'Tue through Sat',
1010 'SC'=>'Sun, Wed, Thur, Fri, Sat',
1011 'SD'=>'Mon, Wed, Thur, Fri, Sat',
1012 'SG'=>'Tue through Fri',
1013 'SL'=>'Mon, Tue and Thur',
1014 'SP'=>'Mon, Tue and Fri',
1015 'SX'=>'Wed and Thur',
1016 'SY'=>'Mon, Wed and Thur',
1017 'SZ'=>'Tue, Thur and Fri',
1020 // Ship/Delivery Pattern Time Code
1021 $this->code271['HSD08'] = array(
1022 'A'=>'1st Shift (9-5)',
1023 'B'=>'2nd Shift',
1024 'C'=>'3rd Shift',
1025 'D'=>'A.M.',
1026 'E'=>'P.M.',
1027 'F'=>'As Directed',
1028 'G'=>'Any Shift',
1029 'Y'=>'None/Cancel/Override',
1030 'Z'=>'Mutually Defined'
1033 // Nature of Injury Codes
1034 $this->code271['IIIGR'] = array(
1035 '1'=>' No Physical Injury',
1036 '01'=>' No Physical Injury',
1037 '2'=>' Amputation',
1038 '02'=>' Amputation',
1039 '3'=>' Angina Pectoris',
1040 '03'=>' Angina Pectoris',
1041 '4'=>' Burn',
1042 '04'=>' Burn',
1043 '7'=>' Concussion',
1044 '07'=>' Concussion',
1045 '10'=>' Contusion',
1046 '13'=>' Crushing',
1047 '16'=>' Dislocation',
1048 '19'=>' Electric Shock',
1049 '22'=>' Enucleation',
1050 '25'=>' Foreign Body',
1051 '28'=>' Fracture',
1052 '30'=>' Freezing',
1053 '31'=>' Hearing Loss or Impairment',
1054 '32'=>' Heat Prostration',
1055 '34'=>' Hernia',
1056 '36'=>' Infection',
1057 '37'=>' Inflammation',
1058 '40'=>' Laceration',
1059 '41'=>' Myocardial Infarction',
1060 '42'=>' Poisoning-General',
1061 '43'=>' Puncture',
1062 '46'=>' Rupture',
1063 '47'=>' Severance',
1064 '49'=>' Sprain or Tear',
1065 '52'=>' Strain or Tear',
1066 '53'=>' Syncope',
1067 '54'=>' Asphyxiation',
1068 '55'=>' Vascular',
1069 '58'=>' Vision Loss',
1070 '59'=>' All Other Specific Injuries, NOC',
1071 '60'=>' Dust Disease, NOC',
1072 '61'=>' Asbestosis',
1073 '62'=>' Black Lung',
1074 '63'=>' Byssinosis',
1075 '64'=>' Silicosis',
1076 '65'=>' Respiratory Disorders',
1077 '66'=>' Poisoning-Chemical, (Other Than Metals)',
1078 '67'=>' Poisoning-Metal',
1079 '68'=>' Dermatitis',
1080 '69'=>' Mental Disorder',
1081 '70'=>' Radiation',
1082 '71'=>' All Other Occupational Disease Injury, NOC',
1083 '72'=>' Loss of Hearing',
1084 '73'=>' Contagious Disease',
1085 '74'=>' Cancer',
1086 '75'=>' AIDS',
1087 '76'=>' VDT-Related Diseases',
1088 '77'=>' Mental Stress',
1089 '78'=>' Carpal Tunnel Syndrome',
1090 '79'=>' Hepatitis C',
1091 '80'=>' All Other Cumulative Injury, NOC',
1092 '90'=>' Multiple Physical Injuries Only',
1093 '91'=>' Multiple Injuries Including Both Physical & Psychological'
1097 // place of service --code source 237
1098 $this->code271['POS'] = array(
1099 '01'=>'Pharmacy',
1100 '02'=>'Unassigned',
1101 '03'=>'School',
1102 '04'=>'Homeless Shelter',
1103 '05'=>'Indian Health Service Free-standing Facility',
1104 '06'=>'Indian Health Service Provider-based Facility',
1105 '07'=>'Tribal 638 Free-standing Facility',
1106 '08'=>'Tribal 638 Provider-based Facility',
1107 '09'=>'Prison/Correctional Facility',
1108 '11'=>'Office',
1109 '12'=>'Home ',
1110 '13'=>'Assisted Living Facility',
1111 '14'=>'Group Home',
1112 '15'=>'Mobile Unit',
1113 '16'=>'Temporary Lodging',
1114 '17'=>'Walk-in Retail Health Clinic',
1115 '20'=>'Urgent Care Facility',
1116 '21'=>'Inpatient Hospital',
1117 '22'=>'Outpatient Hospital',
1118 '23'=>'Emergency Room-Hospital',
1119 '24'=>'Ambulatory Surgical Center',
1120 '25'=>'Birthing Center',
1121 '26'=>'Military Treatment Facility',
1122 '31'=>'Skilled Nursing Facility',
1123 '32'=>'Nursing Facility',
1124 '33'=>'Custodial Care Facility',
1125 '34'=>'Hospice',
1126 '41'=>'Ambulance-Land',
1127 '42'=>'Ambulance-Air or Water',
1128 '49'=>'Independent Clinic',
1129 '50'=>'Federally Qualified Health Center',
1130 '51'=>'Inpatient Psychiatric Facility',
1131 '52'=>'Psychiatric Facility-Partial Hospitalization',
1132 '53'=>'Community Mental Health Center',
1133 '54'=>'Intermediate Care Facility/Mentally Retarded',
1134 '55'=>'Residential Substance Abuse Treatment Facility',
1135 '56'=>'Psychiatric Residential Treatment Center',
1136 '57'=>'Non-residential Substance Abuse Treatment Facility',
1137 '60'=>'Mass Immunization Center',
1138 '61'=>'Comprehensive Inpatient Rehabilitation Facility',
1139 '62'=>'Comprehensive Outpatient Rehabilitation Facility',
1140 '71'=>'Public Health Clinic',
1141 '72'=>'Rural Health Clinic',
1142 '81'=>'Independent Laboratory',
1143 '99'=>'Other Place of Service'
1146 // insurance relationship code
1147 $this->code271['INS02'] = array(
1148 '18'=>'self',
1149 '01'=>'spouse',
1150 '19'=>'child',
1151 '20'=>'employee',
1152 '21'=>'unknown',
1153 '39'=>'Organ Donor',
1154 '40'=>'Cadaver Donor',
1155 '53'=>'Life Partner',
1156 'G8'=>'Other Relationship'
1159 // 278 authorization Health Care Services Review
1160 $this->code271['UM01'] = array(
1161 'AR'=>'Admission review',
1162 'HS'=>'Health Services Review',
1163 'IN'=>'Individual',
1164 'SC'=>'Specialty Care review'
1167 $this->code271['UM02'] = array(
1168 '1'=>'Appeal--Immediate',
1169 '2'=>'Appeal--Standard',
1170 '3'=>'Cancel',
1171 '4'=>'Extension',
1172 'I'=>'Initial',
1173 'N'=>'Reconsideration',
1174 'R'=>'Renewal',
1175 'S'=>'Revised'
1178 // related causes code
1179 $this->code271['UM05'] = array(
1180 'AA'=>'Auto Accident',
1181 'AP'=>'Another Party responsible',
1182 'EM'=>'Employment'
1185 // level of service code
1186 $this->code271['UM06'] = array(
1187 '03'=>'Emergency',
1188 'E'=>'Elective',
1189 'U'=>'Urgent'
1192 // current patient condition code
1193 $this->code271['UM07'] = array(
1194 '1'=>'Acute',
1195 '2'=>'Stable',
1196 '3'=>'Chronic',
1197 '4'=>'Systemic',
1198 '5'=>'Localized',
1199 '6'=>'Mild Disease',
1200 '7'=>'Normal, Healthy',
1201 '8'=>'Severe Systemic Disease',
1202 '9'=>'Severe Systemic Disease Constant Threat to Life',
1203 'E'=>'Excellent',
1204 'F'=>'Fair',
1205 'G'=>'Good',
1206 'P'=>'Poor'
1209 // prognosis code
1210 $this->code271['UM08'] = array(
1211 '1'=>'Poor',
1212 '2'=>'Guarded',
1213 '3'=>'Fair',
1214 '4'=>'Good',
1215 '5'=>'Very Good',
1216 '6'=>'Excellent',
1217 '7'=>'Less than 6 Months to Live',
1218 '8'=>'Terminal'
1221 // delay reason code
1222 $this->code271['UM10'] = array(
1223 '1'=>'Proof of Eligibility Unknown',
1224 '2'=>'Litigation',
1225 '3'=>'Authorization Delays',
1226 '4'=>'Delay in Certifying Provider',
1227 '7'=>'Third Party Processing Delay',
1228 '8'=>'Delay in Eligibility Determination',
1229 '10'=>'Administration Delay in Prior Approval Process',
1230 '11'=>'Other',
1231 '15'=>'Natural Disaster',
1232 '16'=>'Lack of Information',
1233 '17'=>'No Response to Initial Request'
1236 // certification action code
1237 $this->code271['HCR01'] = array(
1238 'A1'=>'Certified in total',
1239 'A2'=>'Certified - partial',
1240 'A3'=>'Not Certified',
1241 'A4'=>'Pended',
1242 'A6'=>'Modified',
1243 'C'=>'Cancelled',
1244 'CT'=>'Contact Payer',
1245 'NA'=>'No Action Required'
1248 // health care decision reason code
1249 $this->code271['HCR03'] = array(
1250 '1'=>'Price Authorization Expired',
1251 '2'=>'Price authorization no longer required',
1252 '3'=>'Product not on the price authorization',
1253 '4'=>'Authorized Quantity Exceeded',
1254 '5'=>'Special Cost Incorrect',
1255 '6'=>'No Credit Allowed',
1256 '7'=>'Administrative Cancellation',
1257 '8'=>'Unit resale higher than authorized',
1258 '9'=>'Out of Network',
1259 '0A'=>'Testing not Included',
1260 '0B'=>'Request Forwarded To and Decision Response Forthcoming From an External Review Organization',
1261 '0C'=>'Authorization/Access Restrictions',
1262 '0D'=>'Requires PCP authorization',
1263 '0E'=>'Provider is Not Primary Care Physician',
1264 '0F'=>'Not Medically Necessary',
1265 '0G'=>'Level of Care Not Appropriate',
1266 '0H'=>'Certification Not Required for this Service',
1267 '0J'=>'Certification Responsibility of External Review Organization',
1268 '0K'=>'Primary Care Service',
1269 '0L'=>'Exceeds Plan Maximums',
1270 '0M'=>'Non-covered Service',
1271 '0N'=>'No Prior Approval',
1272 '0P'=>'Requested Information Not Received',
1273 '0Q'=>'Duplicate Request',
1274 '0R'=>'Service Inconsistent with Diagnosis',
1275 '0S'=>'Pre-existing Condition',
1276 '0T'=>'Experimental Service or Procedure',
1277 '0U'=>'Additional Patient Information required',
1278 '0V'=>'Requires Medical Review',
1279 '0W'=>'Disposition pending review',
1280 '0X'=>'Service Inconsistent with Provider Type',
1281 '0Y'=>'Service inconsistent with Patient\'s Age',
1282 '0Z'=>'Service inconsistent with Patient\'s Gender',
1283 '10'=>'Product/service/procedure delivery pattern (e.g., units, days, visits, weeks, hours, months)',
1284 '11'=>'Pricing',
1285 '12'=>'Patient is restricted to specific provider',
1286 '13'=>'Service authorized for another provider',
1287 '14'=>'Plan/contractual guidelines not followed',
1288 '15'=>'Plan/contractual geographic restriction',
1289 '16'=>'Inappropriate facility type',
1290 '17'=>'Time limits not met',
1291 '18'=>'Notification received',
1292 '19'=>'Cosmetic',
1293 '20'=>'Once in a lifetime restriction applies',
1294 '21'=>'Transport Request Denied',
1295 '22'=>'Ambulance Certification Segment information doesn\'t correspond to Transport Address Segment',
1296 '23'=>'Mileage cannot be computed based on data submitted',
1297 '24'=>'Computed mileage is inconsistent with transport information or service units submitted',
1298 '25'=>'Services were not considered due to other errors in the request.',
1299 '26'=>'Missing Provider Role',
1300 '27'=>'Patient in Health Insurance Exchange premium payment grace period -- first month.',
1301 '28'=>'Patient in Health Insurance Exchange premium payment grace period -- second month.',
1302 '29'=>'Patient in Health Insurance Exchange premium payment grace period -- third month.',
1305 // yes/no condition code
1306 $this->code271['HCR04'] = array(
1307 'N'=>'No',
1308 'U'=>'Unknown',
1309 'W'=>'Not Applicable',
1310 'Y'=>'Yes'
1314 // code source identifier code
1315 $this->code271['HI01'] = array(
1316 'ABF'=>'ICD-10-CM Diagnosis',
1317 'ABJ'=>'ICD-10-CM Admitting Diagnosis',
1318 'ABK'=>'ICD-10-CM Principal Diagnosis',
1319 'APR'=>'ICD-10-CM Patient Reason for Visit',
1320 'BF'=>'ICD-9-CM Diagnosis',
1321 'BJ'=>'ICD-9-CM Admitting Diagnosis',
1322 'BK'=>'ICD-9-CM Principal Diagnosis',
1323 'DR'=>'Diagnosis Related Group (DRG)',
1324 'PR'=>'ICD-9-CM Patient Reason for Visit',
1325 'LOI'=>'LOINC codes'
1328 // code source identifier
1329 $this->code271['SV101'] = array(
1330 'HP'=>'Health Ins Prospective Pmt System',
1331 'N6'=>'National Health Related Item Code in 4-6 Format',
1332 'UI'=>'U.P.C. Consumer Package Code (1-5-5)',
1333 'AD'=>'Am Dental Assoc Codes.',
1334 'CJ'=>'CPT Codes',
1335 'DX'=>'(ICD-9-CM) Diagnosis',
1336 'EN'=>'EAN/UCC--13',
1337 'EO'=>'EAN/UCC--8',
1338 'ER'=>'Jurisdiction Specific Codes',
1339 'HC'=>'(HCPCS) Codes',
1340 'HI'=>'HIBC (HC Bar Code)', // Supplier Labeling Standard Primary Data Message',
1341 'HP'=>'(HIPPS) SNF Rate Code', //Health Insurance Prospective Payment System
1342 'ID'=>'(ICD-9-CM) - Procedure',
1343 'IV'=>'Home Infusion (HIEC) Code',
1344 'N4'=>'National Drug Code in 5-4-2 Format',
1345 'N6'=>'National Health Related Item Code in 4-6 Format',
1346 'NU'=>'National Uniform Billing Committee (NUBC) UB92 Codes',
1347 'ON'=>'Customer Order Number',
1348 'UI'=>'U.P.C. Consumer Package Code (1-5-5)',
1349 'UK'=>'GTIN 14-digit Data Structure',
1350 'UP'=>'UCC--12',
1351 'WK'=>'Advanced Billing Concepts (ABC) Codes',
1352 'ZZ'=>'Mutually Defined'
1356 // code source identifier
1357 $this->code271['SV103'] = array(
1358 'DA'=>'Days',
1359 'F2'=>'International Unit',
1360 'MJ'=>'Minutes',
1361 'UN'=>'Unit'
1364 // nursing home level of care
1365 $this->code271['SV120'] = array(
1366 '1'=>'Skilled Nursing Facility (SNF)',
1367 '2'=>'Intermediate Care Facility (ICF)',
1368 '3'=>'Intermediate Care Facility - Mentally Retarded (ICF-MR)',
1369 '4'=>'Chronic Disease Hospital (CD)',
1370 '5'=>'ntermediate Care Facility (ICF) Level II I',
1371 '6'=>'Special Skilled Nursing Facility (SNF)',
1372 '7'=>'Nursing Facility (NF)',
1373 '8'=>'Hospice'
1377 // admission type code
1378 $this->code271['CL101'] = array(
1379 '1'=>'Emergency',
1380 '2'=>'Urgent',
1381 '3'=>'Elective',
1382 '4'=>'Newborn',
1383 '5'=>'Trauma',
1384 '9'=>'Information not available'
1387 // admission source type code
1388 $this->code271['CL102'] = array(
1389 '1'=>'Physician Referral',
1390 '2'=>'Clinic Referral',
1391 '3'=>'HMO Referral',
1392 '4'=>'Transfer from a Hospital',
1393 '5'=>'Transfer from a Skilled Nursing Facility (SNF)',
1394 '6'=>'Transfer from Another Health Facility',
1395 '7'=>'Emergency Room',
1396 '8'=>'Court/Law Enforcement',
1397 '9'=>'Information Not Available',
1398 '10'=>'Transfer from Psych Substance Abuse or Rehab Hospital',
1399 '11'=>'Transfer from a Critical Access Hospital',
1400 'E'=>'Transfer from Ambulatory Surgical Center',
1401 'F'=>'Transfer from Hospice and is Under a Hospice Plan of Care or Enrolled in Hospice Program'
1404 // release of information indicator code
1405 // -- which segment?
1406 //$this->code271['CL102'] = array(
1407 //'Y'=>'Yes',
1408 //'R'=>'Restricted or Modified Release',
1409 //'N'=>'No Release'
1410 //};
1414 // patient status code
1415 $this->code271['CL103'] = array(
1416 '1'=>'Discharged to Home or Self-Care (Routine Discharge)',
1417 '2'=>'Discharged/Transferred to Another Short-Term General Hospital',
1418 '3'=>'Discharged/Transferred to an SNF',
1419 '4'=>'Discharged/Transferred to an Intermediate Care Facility (ICF)',
1420 '5'=>'Discharged/Transferred to Another Type of Institution (Including Distinct Parts) or Referred for',
1421 '6'=>'Outpatient Services to Another Institution',
1422 '7'=>'Discharged/Transferred to Home Under Care of Organized Home Health Service Organization',
1423 '8'=>'Left Against Medical Advise or Discontinued Care',
1424 '9'=>'Discharged/Transferred to Home Under Care of Home IV Therapy Provider',
1425 '20'=>'Admitted as an Inpatient to this Hospital',
1426 '30'=>'Expired (or Did Not Recover-Christian Science Patient)',
1427 '40'=>'Expired at Home (for Hospice Care Only)',
1428 '41'=>'Expired in a Medical Facility such as a Hospital, SNF, ICF or Freestanding Hospice (for Hospice Care Only)',
1429 '42'=>'Expired, Place Unknown (for Hospice Care Only)',
1430 '50'=>'Discharged to Hospice-Home',
1431 '51'=>'Discharged to Hospice-Medical Facility',
1432 '61'=>'Discharged/transferred within this institution to a hospital based Medicare approved swing bed.',
1433 '62'=>'Discharged/transferred to an inpatient rehabilitation facility including distinct part units of a hospital',
1434 '63'=>'Discharged/transferred to a long term care hospital',
1435 '64'=>'Discharged/transferred to a nursing facility certified under Medicaid but not certified under Medicare.',
1436 '65'=>'Discharged/transferred to a psychiatric hospital or psychiatric distinct part unit of a hospital',
1437 '66'=>'Discharged/transferred to a Critical Access Hospital (CAH)',
1438 '69'=>'Discharged/transferred to a designated disaster alternative care site',
1439 '81'=>'Discharged to home or self-care with a planned acute care hospital inpatient readmission',
1440 '82'=>'Discharged/transferred to a short term general hospital for inpatient care with a planned acute care hospital inpatient readmission',
1441 '83'=>'Discharged/transferred to a skilled nursing facility (SNF) with Medicare certification with a planned acute care hospital inpatient readmission',
1442 '84'=>'Discharged/transferred to a facility that provides custodial or supportive care with a planned acute care hospital inpatient readmission',
1443 '85'=>'Discharged/transferred to a designated cancer center or children\'s hospital with a planned acute care hospital inpatient readmission',
1444 '86'=>'Discharged/transferred to home under care of organized home health service organization with a planned acute care hospital inpatient readmission',
1445 '87'=>'Discharged/transferred to court/law enforcement with a planned acute care hospital inpatient readmission',
1446 '88'=>'Discharged/transferred to a federal health care facility with a planned acute care hospital inpatient readmission',
1447 '89'=>'Discharged/transferred to a hospital-based Medicare approved swing bed with a planned acute care hospital inpatient readmission',
1448 '90'=>'Discharged/transferred to an inpatient rehabilitation facility (IRF) including rehabilitation distinct part units of a hospital with a planned acute care hospital inpatient readmission',
1449 '91'=>'Discharged/transferred to a Medicare certified long term care hospital (LTCH) with a planned acute care hospital inpatient readmission',
1450 '92'=>'Discharged/transferred to a nursing facility certified under Medicaid but not certified under Medicare with a planned acute care hospital inpatient readmission',
1451 '93'=>'Discharged/transferred to a psychiatric distinct part unit of a hospital with a planned acute care hospital inpatient readmission',
1452 '94'=>'Discharged/transferred to a critical access hospital (CAH) with a planned acute care hospital inpatient readmission',
1453 '95'=>'Discharged/transferred to another type of health care institution not defined elsewhere in this code list with a planned acute care hospital inpatient readmission'
1456 // ambulance transport code
1457 $this->code271['CR103'] = array(
1458 'I'=>'Initial Trip',
1459 'R'=>'Return Trip',
1460 'T'=>'Transfer Trip',
1461 'X'=>'Round Trip'
1465 // spinal subluxation level code
1466 $this->code271['CR203'] = array(
1467 'C1'=>'Cervical 1',
1468 'C2'=>'Cervical 2',
1469 'C3'=>'Cervical 3',
1470 'C4'=>'Cervical 4',
1471 'C5'=>'Cervical 5',
1472 'C6'=>'Cervical 6',
1473 'C7'=>'Cervical 7',
1474 'CO'=>'Coccyx',
1475 'IL'=>'Ilium',
1476 'L1'=>'Lumbar 1',
1477 'L2'=>'Lumbar 2',
1478 'L3'=>'Lumbar 3',
1479 'L4'=>'Lumbar 4',
1480 'L5'=>'Lumbar 5',
1481 'OC'=>'Occiput',
1482 'SA'=>'Sacrum',
1483 'T1'=>'Thoracic 1',
1484 'T2'=>'Thoracic 2',
1485 'T3'=>'Thoracic 3',
1486 'T4'=>'Thoracic 4',
1487 'T5'=>'Thoracic 5',
1488 'T6'=>'Thoracic 6',
1489 'T7'=>'Thoracic 7',
1490 'T8'=>'Thoracic 8',
1491 'T9'=>'Thoracic 9',
1492 'T10'=>'Thoracic 10',
1493 'T11'=>'Thoracic 11',
1494 'T12'=>'Thoracic 12'
1497 // oxygen type code
1498 $this->code271['CR503'] = array(
1499 'A'=>'Concentrator',
1500 'B'=>'Liquid Stationary',
1501 'C'=>'Gaseous Stationary',
1502 'D'=>'Liquid Portable',
1503 'E'=>'Gaseous Portable',
1504 'O'=>'Other'
1508 // oxygen delivery type code
1509 $this->code271['CR517'] = array(
1510 'A'=>'Nasal Cannula',
1511 'B'=>'Oxygen Conserving Device',
1512 'C'=>'Oxygen Conserving Device with Oxygen Pulse System',
1513 'D'=>'Oxygen Conserving Device with Reservoir System',
1514 'E'=>'Transtracheal Catheter'
1518 // certification type code
1519 $this->code271['CR608'] = array(
1520 '1'=>'Appeal-Immediate',
1521 '2'=>'Appeal-Standard',
1522 '3'=>'Cancel',
1523 '4'=>'Extension',
1524 '5'=>'Notification',
1525 '6'=>'Verification',
1526 'I'=>'Initial',
1527 'R'=>'Renewal',
1528 'S'=>'Revised'
1533 // paperwork type code
1534 $this->code271['PWK01'] = array(
1535 '3'=>' Report Justifying Treatment Beyond Utilization Guidelines',
1536 '4'=>' Drugs Administered',
1537 '5'=>' Treatment Diagnosis',
1538 '6'=>' Initial Assessment',
1539 '7'=>' Functional Goals',
1540 '8'=>' Plan of Treatment',
1541 '9'=>' Progress Report',
1542 '10'=>'Continued Treatment',
1543 '11'=>'Chemical Analysis',
1544 '13'=>'Certified Test Report',
1545 '15'=>'Justification for Admission',
1546 '21'=>'Recovery Plan',
1547 '48'=>'Social Security Benefit Letter',
1548 '55'=>'Rental Agreement',
1549 '59'=>'Benefit Letter',
1550 '77'=>'Support Data for Verification',
1551 'A3'=>'Allergies/Sensitivities Document',
1552 'A4'=>'Autopsy Report',
1553 'AM'=>'Ambulance Certification',
1554 'AS'=>'Admission Summary',
1555 'AT'=>'Purchase Order Attachment',
1556 'B2'=>'Prescription',
1557 'B3'=>'Physician Order',
1558 'BR'=>'Benchmark Testing Results',
1559 'BS'=>'Baseline',
1560 'BT'=>'Blanket Test Results',
1561 'CB'=>'Chiropractic Justification',
1562 'CK'=>'Consent Form(s)',
1563 'D2'=>'Drug Profile Document',
1564 'DA'=>'Dental Models',
1565 'DB'=>'Durable Medical Equipment Prescription',
1566 'DG'=>'Diagnostic Report',
1567 'DJ'=>'Discharge Monitoring Report',
1568 'DS'=>'Discharge Summary',
1569 'FM'=>'Family Medical History Document',
1570 'HC'=>'Health Certificate',
1571 'HR'=>'Health Clinic Records',
1572 'I5'=>'Immunization Record',
1573 'IR'=>'State School Immunization Records',
1574 'LA'=>'Laboratory Results',
1575 'M1'=>'Medical Record Attachment',
1576 'NN'=>'Nursing Notes',
1577 'OB'=>'Operative Note',
1578 'OC'=>'Oxygen Content Averaging Report',
1579 'OD'=>'Orders and Treatments Document',
1580 'OE'=>'Objective Physical Examination (including vital signs) Document',
1581 'OX'=>'Oxygen Therapy Certification',
1582 'P4'=>'Pathology Report',
1583 'P5'=>'Patient Medical History Document',
1584 'P6'=>'Periodontal Charts',
1585 'P7'=>'Periodontal Reports',
1586 'PE'=>'Parenteral or Enteral Certification',
1587 'PN'=>'Physical Therapy Notes',
1588 'PO'=>'Prosthetics or Orthotic Certification',
1589 'PQ'=>'Paramedical Results',
1590 'PY'=>'Physician Report',
1591 'PZ'=>'Physical Therapy Certification',
1592 'QC'=>'Cause and Corrective Action Report',
1593 'QR'=>'Quality Report',
1594 'RB'=>'Radiology Films',
1595 'RR'=>'Radiology Reports',
1596 'RT'=>'Report of Tests and Analysis Report',
1597 'RX'=>'Renewable Oxygen Content Averaging Report',
1598 'SG'=>'Symptoms Document',
1599 'V5'=>'Death Notification',
1600 'XP'=>'Photographs'
1603 // paperwork delivery code
1604 $this->code271['PWK02'] = array(
1605 'BM'=>'By Mail',
1606 'EL'=>'Electronically Only',
1607 'EM'=>'E-Mail',
1608 'FX'=>'By Fax',
1609 'VO'=>'Voice'
1613 // certification type code
1614 $this->code271['CRC01'] = array(
1615 '07'=>'Ambulance Certification',
1616 '08'=>'Chiropractic Certification',
1617 '09'=>'Durable Medical Equipment Certification'
1621 $this->code271['CRC03'] = array(
1622 '1'=>'Patient was admitted to a hospital',
1623 '2'=>'Patient was bed confined before the ambulance service',
1624 '3'=>'Patient was bed confined after the ambulance service',
1625 '4'=>'Patient was moved by stretcher',
1626 '5'=>'Patient was unconscious or in shock',
1627 '6'=>'Patient was transported in an emergency situation',
1628 '7'=>'Patient had to be physically restrained',
1629 '8'=>'Patient had visible hemorrhaging',
1630 '9'=>'Ambulance service was medically necessary',
1631 '10'=>'Patient is ambulatory',
1632 '11'=>'Ambulation is Impaired and Walking Aid is Used for Therapy or Mobility',
1633 '12'=>'Patient is confined to a bed or chair',
1634 '13'=>'Patient is Confined to a Room or an Area Without Bathroom Facilities',
1635 '14'=>'Ambulation is Impaired and Walking Aid is Used for Mobility',
1636 '15'=>'Patient Condition Requires Positioning of the Body or Attachments Which Would Not be Feasible With the Use of an Ordinary Bed',
1637 '16'=>'Patient needs a trapeze bar to sit up due to respiratory condition or change body positions for other medical reasons',
1638 '17'=>'Patient\'s Ability to Breathe is Severely Impaired',
1639 '18'=>'Patient condition requires frequent and/or immediate changes in body positions',
1640 '19'=>'Patient can operate controls',
1641 '20'=>'Siderails Are to be Attached to a Hospital Bed Owned by the Beneficiary',
1642 '21'=>'Patient owns equipment',
1643 '22'=>'Mattress or Siderails are Being Used with Prescribed Medically Necessary Hospital Bed Owned by the Beneficiary',
1644 '23'=>'Patient Needs Lift to Get In or Out of Bed or to Assist in Transfer from Bed to Wheelchair',
1645 '24'=>'Patient has an orthopedic impairment requiring traction equipment which prevents ambulation during period of use',
1646 '25'=>'Item has been prescribed as part of a planned regimen of treatment in patient home',
1647 '26'=>'Patient is highly susceptible to decubitus ulcers',
1648 '27'=>'Patient or a care-giver has been instructed in use of equipment',
1649 '29'=>'A 6-7 hour nocturnal study documents 30 episodes of apnea each lasting more than 10 seconds',
1650 '30'=>'Without the equipment, the patient would require surgery',
1651 '31'=>'Patient has had a total knee replacement',
1652 '32'=>'Patient has intractable lymphedema of the extremities',
1653 '33'=>'Patient is in a nursing home',
1654 '35'=>'This Feeding is the Only Form of Nutritional Intake for This Patient',
1655 '37'=>'Oxygen delivery equipment is stationary',
1656 '38'=>'Certification signed by the physician is on file at the supplier\'s office',
1657 '40'=>'Patient or Caregiver is Capable of Using the Equipment Without Technical or Professional Supervision',
1658 '41'=>'Patient or Caregiver is Unable to Propel or Lift a Standard Weight Wheelchair',
1659 '42'=>'Patient Requires Leg Elevation for Edema or Body Alignment',
1660 '43'=>'Patient Weight or Usage Needs Necessitate a Heavy Duty Wheelchair',
1661 '44'=>'Patient Requires Reclining Function of a Wheelchair',
1662 '45'=>'Patient is Unable to Operate a Wheelchair Manually',
1663 '46'=>'Patient or Caregiver Requires Side Transfer into Wheelchair, Commode or Other',
1664 '58'=>'Durable Medical Equipment (DME) Purchased New',
1665 '59'=>'Durable Medical Equipment (DME) Is Under Warranty',
1666 '60'=>'Transportation Was To the Nearest Facility',
1667 '9D'=>'Lack of Appropriate Facility within Reasonable Distance to Treat Patient in the Event of Complications',
1668 '9H'=>'Patient Requires Intensive IV Therapy',
1669 '9J'=>'Patient Requires Protective Isolation',
1670 '9K'=>'Patient Requires Frequent Monitoring',
1671 'IH'=>'Independent at Home',
1672 'LB'=>'Legally Blind',
1673 'SL'=>'Speech Limitations'
1676 // Claim Status Category Codes
1677 // ASC X12 External Code Source 507 LAST UPDATED 7/1/2015
1678 $this->code271['HCCSCC'] = array(
1679 'A0' => 'Acknowledgement/Forwarded-The claim/encounter has been forwarded to another entity.',
1680 'A1' => 'Acknowledgement/Receipt-The claim/encounter has been received.',
1681 'A2' => 'Acknowledgement/Acceptance into adjudication system-The claim/encounter has been accepted into the adjudication system.',
1682 'A3' => 'Acknowledgement/Returned as unprocessable claim-The claim/encounter has been rejected and has not been entered into the adjudication system.',
1683 'A4' => 'Acknowledgement/Not Found-The claim/encounter can not be found in the adjudication system.',
1684 'A5' => 'Acknowledgement/Split Claim-The claim/encounter has been split upon acceptance into the adjudication system.',
1685 'A6' => 'Acknowledgement/Rejected for Missing Information - The claim/encounter is missing the information specified in the Status details and has been rejected.',
1686 'A7' => 'Acknowledgement/Rejected for Invalid Information - The claim/encounter has invalid information as specified in the Status details and has been rejected.',
1687 'A8' => 'Acknowledgement/Rejected for relational field in error.',
1688 // Pending
1689 'P0' => 'Pending: Adjudication/Details-This is a generic message about a pended claim.',
1690 'P1' => 'Pending/In Process-The claim or encounter is in the adjudication system.',
1691 'P2' => 'Pending/Payer Review-The claim/encounter is suspended and is pending review ',
1692 'P3' => 'Pending/Provider Requested Information - The claim or encounter is waiting for information that has already been requested from the provider.',
1693 'P4' => 'Pending/Patient Requested Information - The claim or encounter is waiting for information that has already been requested from the patient.',
1694 'P5' => 'Pending/Payer Administrative/System hold',
1695 // Finalized
1696 'F0' => 'Finalized-The claim/encounter has completed the adjudication cycle and no more action will be taken.',
1697 'F1' => 'Finalized/Payment-The claim/line has been paid.',
1698 'F2' => 'Finalized/Denial-The claim/line has been denied.',
1699 'F3' => 'Finalized/Revised - Adjudication information has been changed',
1700 'F3F' => 'Finalized/Forwarded-The claim/encounter processing has been completed.',
1701 'F3N' => 'Finalized/Not Forwarded-The claim/encounter processing has been completed.',
1702 'F4' => 'Finalized/Adjudication Complete - No payment forthcoming-The claim/encounter has been adjudicated and no further payment is forthcoming.',
1703 // Requests for additional information
1704 'R0' => 'Requests for additional Information/General Requests-Requests that don\'t fall into other R-type categories.',
1705 'R1' => 'Requests for additional Information/Entity Requests-Requests for information about specific entities ',
1706 'R3' => 'Requests for additional Information/Claim/Line-Requests for information that could normally be submitted on a claim.',
1707 'R4' => 'Requests for additional Information/Documentation-Requests for additional supporting documentation.',
1708 'R5' => 'Request for additional information/more specific detail-Additional information as a follow up to a previous request is needed.',
1709 'R6' => 'Requests for additional information – Regulatory requirements',
1710 'R7' => 'Requests for additional information – Confirm care is consistent with Health Plan policy coverage',
1711 'R8' => 'Requests for additional information – Confirm care is consistent with health plan coverage exceptions',
1712 'R9' => 'Requests for additional information – Determination of medical necessity',
1713 'R10' => 'Requests for additional information – Support a filed grievance or appeal',
1714 'R11' => 'Requests for additional information – Pre-payment review of claims',
1715 'R12' => 'Requests for additional information – Clarification or justification of use for specified procedure code',
1716 'R13' => 'Requests for additional information – Original documents submitted are not readable.',
1717 'R14' => 'Requests for additional information – Original documents received are not what was requested.',
1718 'R15' => 'Requests for additional information – Workers Compensation coverage determination.',
1719 'R16' => 'Requests for additional information – Eligibility determination',
1720 // General
1721 // Error
1722 'E0' => 'Response not possible - error on submitted request data',
1723 'E1' => 'Response not possible - System Status',
1724 'E2' => 'Information Holder is not responding; resubmit at a later time.',
1725 'E3' => 'Correction required - relational fields in error.',
1726 'E4' => 'Trading partner agreement specific requirement not met: Data correction required.',
1727 // Searches
1728 'D0' => 'Data Search Unsuccessful - The payer is unable to return status on the requested claim(s) based on the submitted search criteria.',
1732 // Health Care Claim Status Codes
1733 // ASC X12 External Code Source 508 LAST UPDATED 3/1/2016
1734 $this->code271['HCCSC'] = array(
1735 "0" => "Cannot provide further status electronically.",
1736 "1" => "For more detailed information, see remittance advice.",
1737 "2" => "More detailed information in letter.",
1738 "3" => "Claim has been adjudicated and is awaiting payment cycle.",
1739 "6" => "Balance due from the subscriber.",
1740 "12" => "One or more originally submitted procedure codes have been combined.",
1741 "15" => "One or more originally submitted procedure code have been modified.",
1742 "16" => "Claim/encounter has been forwarded to entity.",
1743 "17" => "Claim/encounter has been forwarded by third party entity to entity.",
1744 "18" => "Entity received claim/encounter, but returned invalid status.",
1745 "19" => "Entity acknowledges receipt of claim/encounter.",
1746 "20" => "Accepted for processing.",
1747 "21" => "Missing or invalid information.",
1748 "23" => "Returned to Entity.",
1749 "24" => "Entity not approved as an electronic submitter.",
1750 "25" => "Entity not approved.",
1751 "26" => "Entity not found.",
1752 "27" => "Policy canceled.",
1753 "29" => "Subscriber and policy number/contract number mismatched.",
1754 "30" => "Subscriber and subscriber id mismatched.",
1755 "31" => "Subscriber and policyholder name mismatched.",
1756 "32" => "Subscriber and policy number/contract number not found.",
1757 "33" => "Subscriber and subscriber id not found.",
1758 "34" => "Subscriber and policyholder name not found.",
1759 "35" => "Claim/encounter not found.",
1760 "37" => "Predetermination is on file, awaiting completion of services.",
1761 "38" => "Awaiting next periodic adjudication cycle.",
1762 "39" => "Charges for pregnancy deferred until delivery.",
1763 "40" => "Waiting for final approval.",
1764 "41" => "Special handling required at payer site.",
1765 "42" => "Awaiting related charges.",
1766 "44" => "Charges pending provider audit.",
1767 "45" => "Awaiting benefit determination.",
1768 "46" => "Internal review/audit.",
1769 "47" => "Internal review/audit - partial payment made.",
1770 "49" => "Pending provider accreditation review.",
1771 "50" => "Claim waiting for internal provider verification.",
1772 "51" => "Investigating occupational illness/accident.",
1773 "52" => "Investigating existence of other insurance coverage.",
1774 "53" => "Claim being researched for Insured ID/Group Policy Number error.",
1775 "54" => "Duplicate of a previously processed claim/line.",
1776 "55" => "Claim assigned to an approver/analyst.",
1777 "56" => "Awaiting eligibility determination.",
1778 "57" => "Pending COBRA information requested.",
1779 "59" => "Information was requested by a non-electronic method.",
1780 "60" => "Information was requested by an electronic method.",
1781 "61" => "Eligibility for extended benefits.",
1782 "64" => "Re-pricing information.",
1783 "65" => "Claim/line has been paid.",
1784 "66" => "Payment reflects usual and customary charges.",
1785 "72" => "Claim contains split payment.",
1786 "73" => "Payment made to entity, assignment of benefits not on file.",
1787 "78" => "Duplicate of an existing claim/line, awaiting processing.",
1788 "81" => "Contract/plan does not cover pre-existing conditions.",
1789 "83" => "No coverage for newborns.",
1790 "84" => "Service not authorized.",
1791 "85" => "Entity not primary.",
1792 "86" => "Diagnosis and patient gender mismatch.",
1793 "88" => "Entity not eligible for benefits for submitted dates of service.",
1794 "89" => "Entity not eligible for dental benefits for submitted dates of service.",
1795 "90" => "Entity not eligible for medical benefits for submitted dates of service.",
1796 "91" => "Entity not eligible/not approved for dates of service.",
1797 "92" => "Entity does not meet dependent or student qualification.",
1798 "93" => "Entity is not selected primary care provider.",
1799 "94" => "Entity not referred by selected primary care provider.",
1800 "95" => "Requested additional information not received.",
1801 "96" => "No agreement with entity.",
1802 "97" => "Patient eligibility not found with entity.",
1803 "98" => "Charges applied to deductible.",
1804 "99" => "Pre-treatment review.",
1805 "100" => "Pre-certification penalty taken.",
1806 "101" => "Claim was processed as adjustment to previous claim.",
1807 "102" => "Newborn's charges processed on mother's claim.",
1808 "103" => "Claim combined with other claim(s).",
1809 "104" => "Processed according to plan provisions (Plan refers to provisions that exist between the Health Plan and the Consumer or Patient)",
1810 "105" => "Claim/line is capitated.",
1811 "106" => "This amount is not entity's responsibility.",
1812 "107" => "Processed according to contract provisions (Contract refers to provisions that exist between the Health Plan and a Provider of Health Care Services)",
1813 "109" => "Entity not eligible.",
1814 "110" => "Claim requires pricing information.",
1815 "111" => "At the policyholder's request these claims cannot be submitted electronically.",
1816 "114" => "Claim/service should be processed by entity.",
1817 "116" => "Claim submitted to incorrect payer.",
1818 "117" => "Claim requires signature-on-file indicator.",
1819 "121" => "Service line number greater than maximum allowable for payer.",
1820 "123" => "Additional information requested from entity.",
1821 "124" => "Entity's name, address, phone and id number.",
1822 "125" => "Entity's name.",
1823 "126" => "Entity's address.",
1824 "127" => "Entity's Communication Number.",
1825 "128" => "Entity's tax id.",
1826 "129" => "Entity's Blue Cross provider id.",
1827 "130" => "Entity's Blue Shield provider id.",
1828 "131" => "Entity's Medicare provider id.",
1829 "132" => "Entity's Medicaid provider id.",
1830 "133" => "Entity's UPIN.",
1831 "134" => "Entity's CHAMPUS provider id.",
1832 "135" => "Entity's commercial provider id.",
1833 "136" => "Entity's health industry id number.",
1834 "137" => "Entity's plan network id.",
1835 "138" => "Entity's site id .",
1836 "139" => "Entity's health maintenance provider id (HMO).",
1837 "140" => "Entity's preferred provider organization id (PPO).",
1838 "141" => "Entity's administrative services organization id (ASO).",
1839 "142" => "Entity's license/certification number.",
1840 "143" => "Entity's state license number.",
1841 "144" => "Entity's specialty license number.",
1842 "145" => "Entity's specialty/taxonomy code.",
1843 "146" => "Entity's anesthesia license number.",
1844 "147" => "Entity's qualification degree/designation (e.g. RN,PhD,MD).",
1845 "148" => "Entity's social security number.",
1846 "149" => "Entity's employer id.",
1847 "150" => "Entity's drug enforcement agency (DEA) number.",
1848 "152" => "Pharmacy processor number.",
1849 "153" => "Entity's id number.",
1850 "154" => "Relationship of surgeon & assistant surgeon.",
1851 "155" => "Entity's relationship to patient.",
1852 "156" => "Patient relationship to subscriber",
1853 "157" => "Entity's Gender.",
1854 "158" => "Entity's date of birth.",
1855 "159" => "Entity's date of death.",
1856 "160" => "Entity's marital status.",
1857 "161" => "Entity's employment status.",
1858 "162" => "Entity's health insurance claim number (HICN).",
1859 "163" => "Entity's policy number.",
1860 "164" => "Entity's contract/member number.",
1861 "165" => "Entity's employer name, address and phone.",
1862 "166" => "Entity's employer name.",
1863 "167" => "Entity's employer address.",
1864 "168" => "Entity's employer phone number.",
1865 "170" => "Entity's employee id.",
1866 "171" => "Other insurance coverage information (health, liability, auto, etc.).",
1867 "172" => "Other employer name, address and telephone number.",
1868 "173" => "Entity's name, address, phone, gender, DOB, marital status, employment status and relation to subscriber.",
1869 "174" => "Entity's student status.",
1870 "175" => "Entity's school name.",
1871 "176" => "Entity's school address.",
1872 "177" => "Transplant recipient's name, date of birth, gender, relationship to insured.",
1873 "178" => "Submitted charges.",
1874 "179" => "Outside lab charges.",
1875 "180" => "Hospital s semi-private room rate.",
1876 "181" => "Hospital s room rate.",
1877 "182" => "Allowable/paid from other entities coverage NOTE: This code requires the use of an entity code.",
1878 "183" => "Amount entity has paid.",
1879 "184" => "Purchase price for the rented durable medical equipment.",
1880 "185" => "Rental price for durable medical equipment.",
1881 "186" => "Purchase and rental price of durable medical equipment.",
1882 "187" => "Date(s) of service.",
1883 "188" => "Statement from-through dates.",
1884 "189" => "Facility admission date",
1885 "190" => "Facility discharge date",
1886 "191" => "Date of Last Menstrual Period (LMP)",
1887 "192" => "Date of first service for current series/symptom/illness.",
1888 "193" => "First consultation/evaluation date.",
1889 "194" => "Confinement dates.",
1890 "195" => "Unable to work dates/Disability Dates.",
1891 "196" => "Return to work dates.",
1892 "197" => "Effective coverage date(s).",
1893 "198" => "Medicare effective date.",
1894 "199" => "Date of conception and expected date of delivery.",
1895 "200" => "Date of equipment return.",
1896 "201" => "Date of dental appliance prior placement.",
1897 "202" => "Date of dental prior replacement/reason for replacement.",
1898 "203" => "Date of dental appliance placed.",
1899 "204" => "Date dental canal(s) opened and date service completed.",
1900 "205" => "Date(s) dental root canal therapy previously performed.",
1901 "206" => "Most recent date of curettage, root planing, or periodontal surgery.",
1902 "207" => "Dental impression and seating date.",
1903 "208" => "Most recent date pacemaker was implanted.",
1904 "209" => "Most recent pacemaker battery change date.",
1905 "210" => "Date of the last x-ray.",
1906 "211" => "Date(s) of dialysis training provided to patient.",
1907 "212" => "Date of last routine dialysis.",
1908 "213" => "Date of first routine dialysis.",
1909 "214" => "Original date of prescription/orders/referral.",
1910 "215" => "Date of tooth extraction/evolution.",
1911 "216" => "Drug information.",
1912 "217" => "Drug name, strength and dosage form.",
1913 "218" => "NDC number.",
1914 "219" => "Prescription number.",
1915 "222" => "Drug dispensing units and average wholesale price (AWP).",
1916 "223" => "Route of drug/myelogram administration.",
1917 "224" => "Anatomical location for joint injection.",
1918 "225" => "Anatomical location.",
1919 "226" => "Joint injection site.",
1920 "227" => "Hospital information.",
1921 "228" => "Type of bill for UB claim",
1922 "229" => "Hospital admission source.",
1923 "230" => "Hospital admission hour.",
1924 "231" => "Hospital admission type.",
1925 "232" => "Admitting diagnosis.",
1926 "233" => "Hospital discharge hour.",
1927 "234" => "Patient discharge status.",
1928 "235" => "Units of blood furnished.",
1929 "236" => "Units of blood replaced.",
1930 "237" => "Units of deductible blood.",
1931 "238" => "Separate claim for mother/baby charges.",
1932 "239" => "Dental information.",
1933 "240" => "Tooth surface(s) involved.",
1934 "241" => "List of all missing teeth (upper and lower).",
1935 "242" => "Tooth numbers, surfaces, and/or quadrants involved.",
1936 "243" => "Months of dental treatment remaining.",
1937 "244" => "Tooth number or letter.",
1938 "245" => "Dental quadrant/arch.",
1939 "246" => "Total orthodontic service fee, initial appliance fee, monthly fee, length of service.",
1940 "247" => "Line information.",
1941 "249" => "Place of service.",
1942 "250" => "Type of service.",
1943 "251" => "Total anesthesia minutes.",
1944 "252" => "Entity's authorization/certification number.",
1945 "254" => "Principal diagnosis code.",
1946 "255" => "Diagnosis code.",
1947 "256" => "DRG code(s).",
1948 "257" => "ADSM-III-R code for services rendered.",
1949 "258" => "Days/units for procedure/revenue code.",
1950 "259" => "Frequency of service.",
1951 "260" => "Length of medical necessity, including begin date.",
1952 "261" => "Obesity measurements.",
1953 "262" => "Type of surgery/service for which anesthesia was administered.",
1954 "263" => "Length of time for services rendered.",
1955 "264" => "Number of liters/minute & total hours/day for respiratory support.",
1956 "265" => "Number of lesions excised.",
1957 "266" => "Facility point of origin and destination - ambulance.",
1958 "267" => "Number of miles patient was transported.",
1959 "268" => "Location of durable medical equipment use.",
1960 "269" => "Length/size of laceration/tumor.",
1961 "270" => "Subluxation location.",
1962 "271" => "Number of spine segments.",
1963 "272" => "Oxygen contents for oxygen system rental.",
1964 "273" => "Weight.",
1965 "274" => "Height.",
1966 "275" => "Claim.",
1967 "276" => "UB04/HCFA-1450/1500 claim form",
1968 "277" => "Paper claim.",
1969 "279" => "Claim/service must be itemized",
1970 "281" => "Related confinement claim.",
1971 "282" => "Copy of prescription.",
1972 "283" => "Medicare entitlement information is required to determine primary coverage",
1973 "284" => "Copy of Medicare ID card.",
1974 "286" => "Other payer's Explanation of Benefits/payment information.",
1975 "287" => "Medical necessity for service.",
1976 "288" => "Hospital late charges",
1977 "290" => "Pre-existing information.",
1978 "291" => "Reason for termination of pregnancy.",
1979 "292" => "Purpose of family conference/therapy.",
1980 "293" => "Reason for physical therapy.",
1981 "294" => "Supporting documentation.",
1982 "295" => "Attending physician report.",
1983 "296" => "Nurse's notes.",
1984 "297" => "Medical notes/report.",
1985 "298" => "Operative report.",
1986 "299" => "Emergency room notes/report.",
1987 "300" => "Lab/test report/notes/results.",
1988 "301" => "MRI report.",
1989 "305" => "Radiology/x-ray reports and/or interpretation",
1990 "306" => "Detailed description of service.",
1991 "307" => "Narrative with pocket depth chart.",
1992 "308" => "Discharge summary.",
1993 "310" => "Progress notes for the six months prior to statement date.",
1994 "311" => "Pathology notes/report.",
1995 "312" => "Dental charting.",
1996 "313" => "Bridgework information.",
1997 "314" => "Dental records for this service.",
1998 "315" => "Past perio treatment history.",
1999 "316" => "Complete medical history.",
2000 "318" => "X-rays/radiology films",
2001 "319" => "Pre/post-operative x-rays/photographs.",
2002 "320" => "Study models.",
2003 "322" => "Recent Full Mouth X-rays",
2004 "323" => "Study models, x-rays, and/or narrative.",
2005 "324" => "Recent x-ray of treatment area and/or narrative.",
2006 "325" => "Recent fm x-rays and/or narrative.",
2007 "326" => "Copy of transplant acquisition invoice.",
2008 "327" => "Periodontal case type diagnosis and recent pocket depth chart with narrative.",
2009 "329" => "Exercise notes.",
2010 "330" => "Occupational notes.",
2011 "331" => "History and physical.",
2012 "333" => "Patient release of information authorization.",
2013 "334" => "Oxygen certification.",
2014 "335" => "Durable medical equipment certification.",
2015 "336" => "Chiropractic certification.",
2016 "337" => "Ambulance certification/documentation.",
2017 "339" => "Enteral/parenteral certification.",
2018 "340" => "Pacemaker certification.",
2019 "341" => "Private duty nursing certification.",
2020 "342" => "Podiatric certification.",
2021 "343" => "Documentation that facility is state licensed and Medicare approved as a surgical facility.",
2022 "344" => "Documentation that provider of physical therapy is Medicare Part B approved.",
2023 "345" => "Treatment plan for service/diagnosis",
2024 "346" => "Proposed treatment plan for next 6 months.",
2025 "352" => "Duration of treatment plan.",
2026 "353" => "Orthodontics treatment plan.",
2027 "354" => "Treatment plan for replacement of remaining missing teeth.",
2028 "360" => "Benefits Assignment Certification Indicator",
2029 "363" => "Possible Workers' Compensation",
2030 "364" => "Is accident/illness/condition employment related?",
2031 "365" => "Is service the result of an accident?",
2032 "366" => "Is injury due to auto accident?",
2033 "374" => "Is prescribed lenses a result of cataract surgery?",
2034 "375" => "Was refraction performed?",
2035 "380" => "CRNA supervision/medical direction.",
2036 "382" => "Did provider authorize generic or brand name dispensing?",
2037 "383" => "Nerve block use (surgery vs. pain management)",
2038 "384" => "Is prosthesis/crown/inlay placement an initial placement or a replacement?",
2039 "385" => "Is appliance upper or lower arch & is appliance fixed or removable?",
2040 "386" => "Orthodontic Treatment/Purpose Indicator",
2041 "387" => "Date patient last examined by entity.",
2042 "388" => "Date post-operative care assumed",
2043 "389" => "Date post-operative care relinquished",
2044 "390" => "Date of most recent medical event necessitating service(s)",
2045 "391" => "Date(s) dialysis conducted",
2046 "394" => "Date(s) of most recent hospitalization related to service",
2047 "395" => "Date entity signed certification/recertification",
2048 "396" => "Date home dialysis began",
2049 "397" => "Date of onset/exacerbation of illness/condition",
2050 "398" => "Visual field test results",
2051 "400" => "Claim is out of balance",
2052 "401" => "Source of payment is not valid",
2053 "402" => "Amount must be greater than zero.",
2054 "403" => "Entity referral notes/orders/prescription",
2055 "406" => "Brief medical history as related to service(s)",
2056 "407" => "Complications/mitigating circumstances",
2057 "408" => "Initial certification",
2058 "409" => "Medication logs/records (including medication therapy)",
2059 "414" => "Necessity for concurrent care (more than one physician treating the patient)",
2060 "417" => "Prior testing, including result(s) and date(s) as related to service(s)",
2061 "419" => "Individual test(s) comprising the panel and the charges for each test",
2062 "420" => "Name, dosage and medical justification of contrast material used for radiology procedure",
2063 "428" => "Reason for transport by ambulance",
2064 "430" => "Nearest appropriate facility",
2065 "431" => "Patient's condition/functional status at time of service.",
2066 "432" => "Date benefits exhausted",
2067 "433" => "Copy of patient revocation of hospice benefits",
2068 "434" => "Reasons for more than one transfer per entitlement period",
2069 "435" => "Notice of Admission",
2070 "441" => "Entity professional qualification for service(s)",
2071 "442" => "Modalities of service",
2072 "443" => "Initial evaluation report",
2073 "449" => "Projected date to discontinue service(s)",
2074 "450" => "Awaiting spend down determination",
2075 "451" => "Preoperative and post-operative diagnosis",
2076 "452" => "Total visits in total number of hours/day and total number of hours/week",
2077 "453" => "Procedure Code Modifier(s) for Service(s) Rendered",
2078 "454" => "Procedure code for services rendered.",
2079 "455" => "Revenue code for services rendered.",
2080 "456" => "Covered Day(s)",
2081 "457" => "Non-Covered Day(s)",
2082 "458" => "Coinsurance Day(s)",
2083 "459" => "Lifetime Reserve Day(s)",
2084 "460" => "NUBC Condition Code(s)",
2085 "464" => "Payer Assigned Claim Control Number",
2086 "465" => "Principal Procedure Code for Service(s) Rendered",
2087 "466" => "Entity's Original Signature.",
2088 "467" => "Entity Signature Date.",
2089 "468" => "Patient Signature Source",
2090 "469" => "Purchase Service Charge",
2091 "470" => "Was service purchased from another entity?",
2092 "471" => "Were services related to an emergency?",
2093 "472" => "Ambulance Run Sheet",
2094 "473" => "Missing or invalid lab indicator",
2095 "474" => "Procedure code and patient gender mismatch",
2096 "475" => "Procedure code not valid for patient age",
2097 "476" => "Missing or invalid units of service",
2098 "477" => "Diagnosis code pointer is missing or invalid",
2099 "478" => "Claim submitter's identifier",
2100 "479" => "Other Carrier payer ID is missing or invalid",
2101 "480" => "Entity's claim filing indicator.",
2102 "481" => "Claim/submission format is invalid.",
2103 "483" => "Maximum coverage amount met or exceeded for benefit period.",
2104 "484" => "Business Application Currently Not Available",
2105 "485" => "More information available than can be returned in real time mode. Narrow your current search criteria.",
2106 "486" => "Principal Procedure Date",
2107 "487" => "Claim not found, claim should have been submitted to/through 'entity'.",
2108 "488" => "Diagnosis code(s) for the services rendered.",
2109 "489" => "Attachment Control Number",
2110 "490" => "Other Procedure Code for Service(s) Rendered",
2111 "491" => "Entity not eligible for encounter submission.",
2112 "492" => "Other Procedure Date",
2113 "493" => "Version/Release/Industry ID code not currently supported by information holder",
2114 "494" => "Real-Time requests not supported by the information holder, resubmit as batch request",
2115 "495" => "Requests for re-adjudication must reference the newly assigned payer claim control number for this previously adjusted claim. Correct the payer claim control number and re-submit.",
2116 "496" => "Submitter not approved for electronic claim submissions on behalf of this entity.",
2117 "497" => "Sales tax not paid",
2118 "498" => "Maximum leave days exhausted",
2119 "499" => "No rate on file with the payer for this service for this entity",
2120 "500" => "Entity's Postal/Zip Code.",
2121 "501" => "Entity's State/Province.",
2122 "502" => "Entity's City.",
2123 "503" => "Entity's Street Address.",
2124 "504" => "Entity's Last Name.",
2125 "505" => "Entity's First Name.",
2126 "506" => "Entity is changing processor/clearinghouse. This claim must be submitted to the new processor/clearinghouse.",
2127 "507" => "HCPCS",
2128 "508" => "ICD9 NOTE: At least one other status code is required to identify the related procedure code or diagnosis code.",
2129 "509" => "External Cause of Injury Code.",
2130 "510" => "Future date.",
2131 "511" => "Invalid character.",
2132 "512" => "Length invalid for receiver's application system.",
2133 "513" => "HIPPS Rate Code for services Rendered",
2134 "514" => "Entity's Middle Name",
2135 "515" => "Managed Care review",
2136 "516" => "Other Entity's Adjudication or Payment/Remittance Date.",
2137 "517" => "Adjusted Repriced Claim Reference Number",
2138 "518" => "Adjusted Repriced Line item Reference Number",
2139 "519" => "Adjustment Amount",
2140 "520" => "Adjustment Quantity",
2141 "521" => "Adjustment Reason Code",
2142 "522" => "Anesthesia Modifying Units",
2143 "523" => "Anesthesia Unit Count",
2144 "524" => "Arterial Blood Gas Quantity",
2145 "525" => "Begin Therapy Date",
2146 "526" => "Bundled or Unbundled Line Number",
2147 "527" => "Certification Condition Indicator",
2148 "528" => "Certification Period Projected Visit Count",
2149 "529" => "Certification Revision Date",
2150 "530" => "Claim Adjustment Indicator",
2151 "531" => "Claim Disproportinate Share Amount",
2152 "532" => "Claim DRG Amount",
2153 "533" => "Claim DRG Outlier Amount",
2154 "534" => "Claim ESRD Payment Amount",
2155 "535" => "Claim Frequency Code",
2156 "536" => "Claim Indirect Teaching Amount",
2157 "537" => "Claim MSP Pass-through Amount",
2158 "538" => "Claim or Encounter Identifier",
2159 "539" => "Claim PPS Capital Amount",
2160 "540" => "Claim PPS Capital Outlier Amount",
2161 "541" => "Claim Submission Reason Code",
2162 "542" => "Claim Total Denied Charge Amount",
2163 "543" => "Clearinghouse or Value Added Network Trace",
2164 "544" => "Clinical Laboratory Improvement Amendment",
2165 "545" => "Contract Amount",
2166 "546" => "Contract Code",
2167 "547" => "Contract Percentage",
2168 "548" => "Contract Type Code",
2169 "549" => "Contract Version Identifier",
2170 "550" => "Coordination of Benefits Code",
2171 "551" => "Coordination of Benefits Total Submitted Charge",
2172 "552" => "Cost Report Day Count",
2173 "553" => "Covered Amount",
2174 "554" => "Date Claim Paid",
2175 "555" => "Delay Reason Code",
2176 "556" => "Demonstration Project Identifier",
2177 "557" => "Diagnosis Date",
2178 "558" => "Discount Amount",
2179 "559" => "Document Control Identifier",
2180 "560" => "Entity's Additional/Secondary Identifier.",
2181 "561" => "Entity's Contact Name.",
2182 "562" => "Entity's National Provider Identifier (NPI).",
2183 "563" => "Entity's Tax Amount.",
2184 "564" => "EPSDT Indicator",
2185 "565" => "Estimated Claim Due Amount",
2186 "566" => "Exception Code",
2187 "567" => "Facility Code Qualifier",
2188 "568" => "Family Planning Indicator",
2189 "569" => "Fixed Format Information",
2190 "571" => "Frequency Count",
2191 "572" => "Frequency Period",
2192 "573" => "Functional Limitation Code",
2193 "574" => "HCPCS Payable Amount Home Health",
2194 "575" => "Homebound Indicator",
2195 "576" => "Immunization Batch Number",
2196 "577" => "Industry Code",
2197 "578" => "Insurance Type Code",
2198 "579" => "Investigational Device Exemption Identifier",
2199 "580" => "Last Certification Date",
2200 "581" => "Last Worked Date",
2201 "582" => "Lifetime Psychiatric Days Count",
2202 "583" => "Line Item Charge Amount",
2203 "584" => "Line Item Control Number",
2204 "585" => "Denied Charge or Non-covered Charge",
2205 "586" => "Line Note Text",
2206 "587" => "Measurement Reference Identification Code",
2207 "588" => "Medical Record Number",
2208 "589" => "Provider Accept Assignment Code",
2209 "590" => "Medicare Coverage Indicator",
2210 "591" => "Medicare Paid at 100% Amount",
2211 "592" => "Medicare Paid at 80% Amount",
2212 "593" => "Medicare Section 4081 Indicator",
2213 "594" => "Mental Status Code",
2214 "595" => "Monthly Treatment Count",
2215 "596" => "Non-covered Charge Amount",
2216 "597" => "Non-payable Professional Component Amount",
2217 "598" => "Non-payable Professional Component Billed Amount",
2218 "599" => "Note Reference Code",
2219 "600" => "Oxygen Saturation Qty",
2220 "601" => "Oxygen Test Condition Code",
2221 "602" => "Oxygen Test Date",
2222 "603" => "Old Capital Amount",
2223 "604" => "Originator Application Transaction Identifier",
2224 "605" => "Orthodontic Treatment Months Count",
2225 "606" => "Paid From Part A Medicare Trust Fund Amount",
2226 "607" => "Paid From Part B Medicare Trust Fund Amount",
2227 "608" => "Paid Service Unit Count",
2228 "609" => "Participation Agreement",
2229 "610" => "Patient Discharge Facility Type Code",
2230 "611" => "Peer Review Authorization Number",
2231 "612" => "Per Day Limit Amount",
2232 "613" => "Physician Contact Date",
2233 "614" => "Physician Order Date",
2234 "615" => "Policy Compliance Code",
2235 "616" => "Policy Name",
2236 "617" => "Postage Claimed Amount",
2237 "618" => "PPS-Capital DSH DRG Amount",
2238 "619" => "PPS-Capital Exception Amount",
2239 "620" => "PPS-Capital FSP DRG Amount",
2240 "621" => "PPS-Capital HSP DRG Amount",
2241 "622" => "PPS-Capital IME Amount",
2242 "623" => "PPS-Operating Federal Specific DRG Amount",
2243 "624" => "PPS-Operating Hospital Specific DRG Amount",
2244 "625" => "Predetermination of Benefits Identifier",
2245 "626" => "Pregnancy Indicator",
2246 "627" => "Pre-Tax Claim Amount",
2247 "628" => "Pricing Methodology",
2248 "629" => "Property Casualty Claim Number",
2249 "630" => "Referring CLIA Number",
2250 "631" => "Reimbursement Rate",
2251 "632" => "Reject Reason Code",
2252 "633" => "Related Causes Code (Accident, auto accident, employment)",
2253 "634" => "Remark Code",
2254 "635" => "Repriced Ambulatory Patient Group Code",
2255 "636" => "Repriced Line Item Reference Number",
2256 "637" => "Repriced Saving Amount",
2257 "638" => "Repricing Per Diem or Flat Rate Amount",
2258 "639" => "Responsibility Amount",
2259 "640" => "Sales Tax Amount",
2260 "642" => "Service Authorization Exception Code",
2261 "643" => "Service Line Paid Amount",
2262 "644" => "Service Line Rate",
2263 "645" => "Service Tax Amount",
2264 "646" => "Ship, Delivery or Calendar Pattern Code",
2265 "647" => "Shipped Date",
2266 "648" => "Similar Illness or Symptom Date",
2267 "649" => "Skilled Nursing Facility Indicator",
2268 "650" => "Special Program Indicator",
2269 "651" => "State Industrial Accident Provider Number",
2270 "652" => "Terms Discount Percentage",
2271 "653" => "Test Performed Date",
2272 "654" => "Total Denied Charge Amount",
2273 "655" => "Total Medicare Paid Amount",
2274 "656" => "Total Visits Projected This Certification Count",
2275 "657" => "Total Visits Rendered Count",
2276 "658" => "Treatment Code",
2277 "659" => "Unit or Basis for Measurement Code",
2278 "660" => "Universal Product Number",
2279 "661" => "Visits Prior to Recertification Date Count CR702",
2280 "662" => "X-ray Availability Indicator",
2281 "663" => "Entity's Group Name.",
2282 "664" => "Orthodontic Banding Date",
2283 "665" => "Surgery Date",
2284 "666" => "Surgical Procedure Code",
2285 "667" => "Real-Time requests not supported by the information holder, do not resubmit",
2286 "668" => "Missing Endodontics treatment history and prognosis",
2287 "669" => "Dental service narrative needed.",
2288 "670" => "Funds applied from a consumer spending account such as consumer directed/driven health plan (CDHP), Health savings account (H S A) and or other similar accounts",
2289 "671" => "Funds may be available from a consumer spending account such as consumer directed/driven health plan (CDHP), Health savings account (H S A) and or other similar accounts",
2290 "672" => "Other Payer's payment information is out of balance",
2291 "673" => "Patient Reason for Visit",
2292 "674" => "Authorization exceeded",
2293 "675" => "Facility admission through discharge dates",
2294 "676" => "Entity possibly compensated by facility.",
2295 "677" => "Entity not affiliated.",
2296 "678" => "Revenue code and patient gender mismatch",
2297 "679" => "Submit newborn services on mother's claim",
2298 "680" => "Entity's Country.",
2299 "681" => "Claim currency not supported",
2300 "682" => "Cosmetic procedure",
2301 "683" => "Awaiting Associated Hospital Claims",
2302 "684" => "Rejected. Syntax error noted for this claim/service/inquiry. See Functional or Implementation Acknowledgement for details. ",
2303 "685" => "Claim could not complete adjudication in real time. Claim will continue processing in a batch mode. Do not resubmit.",
2304 "686" => "The claim/ encounter has completed the adjudication cycle and the entire claim has been voided",
2305 "687" => "Claim estimation can not be completed in real time. Do not resubmit.",
2306 "688" => "Present on Admission Indicator for reported diagnosis code(s).",
2307 "689" => "Entity was unable to respond within the expected time frame.",
2308 "690" => "Multiple claims or estimate requests cannot be processed in real time.",
2309 "691" => "Multiple claim status requests cannot be processed in real time.",
2310 "692" => "Contracted funding agreement-Subscriber is employed by the provider of services",
2311 "693" => "Amount must be greater than or equal to zero.",
2312 "694" => "Amount must not be equal to zero.",
2313 "695" => "Entity's Country Subdivision Code.",
2314 "696" => "Claim Adjustment Group Code.",
2315 "697" => "Invalid Decimal Precision.",
2316 "698" => "Form Type Identification",
2317 "699" => "Question/Response from Supporting Documentation Form",
2318 "700" => "ICD10.",
2319 "701" => "Initial Treatment Date",
2320 "702" => "Repriced Claim Reference Number",
2321 "703" => "Advanced Billing Concepts (ABC) code",
2322 "704" => "Claim Note Text",
2323 "705" => "Repriced Allowed Amount",
2324 "706" => "Repriced Approved Amount",
2325 "707" => "Repriced Approved Ambulatory Patient Group Amount",
2326 "708" => "Repriced Approved Revenue Code",
2327 "709" => "Repriced Approved Service Unit Count",
2328 "710" => "Line Adjudication Information.",
2329 "711" => "Stretcher purpose",
2330 "712" => "Obstetric Additional Units",
2331 "713" => "Patient Condition Description",
2332 "714" => "Care Plan Oversight Number",
2333 "715" => "Acute Manifestation Date",
2334 "716" => "Repriced Approved DRG Code",
2335 "717" => "This claim has been split for processing.",
2336 "718" => "Claim/service not submitted within the required timeframe (timely filing).",
2337 "719" => "NUBC Occurrence Code(s)",
2338 "720" => "NUBC Occurrence Code Date(s)",
2339 "721" => "NUBC Occurrence Span Code(s)",
2340 "722" => "NUBC Occurrence Span Code Date(s)",
2341 "723" => "Drug days supply",
2342 "724" => "Drug dosage",
2343 "725" => "NUBC Value Code(s)",
2344 "726" => "NUBC Value Code Amount(s)",
2345 "727" => "Accident date",
2346 "728" => "Accident state",
2347 "729" => "Accident description",
2348 "730" => "Accident cause",
2349 "731" => "Measurement value/test result",
2350 "732" => "Information submitted inconsistent with billing guidelines.",
2351 "733" => "Prefix for entity's contract/member number.",
2352 "734" => "Verifying premium payment",
2353 "735" => "This service/claim is included in the allowance for another service or claim.",
2354 "736" => "A related or qualifying service/claim has not been received/adjudicated.",
2355 "737" => "Current Dental Terminology (CDT) Code",
2356 "738" => "Home Infusion EDI Coalition (HEIC) Product/Service Code",
2357 "739" => "Jurisdiction Specific Procedure or Supply Code",
2358 "740" => "Drop-Off Location",
2359 "741" => "Entity must be a person.",
2360 "742" => "Payer Responsibility Sequence Number Code",
2361 "743" => "Entity’s credential/enrollment information.",
2362 "744" => "Services/charges related to the treatment of a hospital-acquired condition or preventable medical error.",
2363 "745" => "Identifier Qualifier",
2364 "746" => "Duplicate Submission",
2365 "747" => "Hospice Employee Indicator",
2366 "748" => "Corrected Data",
2367 "749" => "Date of Injury/Illness",
2368 "750" => "Auto Accident State or Province Code",
2369 "751" => "Ambulance Pick-up State or Province Code",
2370 "752" => "Ambulance Drop-off State or Province Code",
2371 "753" => "Co-pay status code.",
2372 "754" => "Entity Name Suffix.",
2373 "755" => "Entity's primary identifier.",
2374 "756" => "Entity's Received Date.",
2375 "757" => "Last seen date.",
2376 "758" => "Repriced approved HCPCS code.",
2377 "759" => "Round trip purpose description.",
2378 "760" => "Tooth status code.",
2379 "761" => "Entity's referral number.",
2380 "762" => "Locum Tenens Provider Identifier. Code must be used with Entity Code 82 - Rendering Provider",
2381 "763" => "Ambulance Pickup ZipCode",
2382 "764" => "Professional charges are non covered.",
2383 "765" => "Institutional charges are non covered.",
2384 "766" => "Services were performed during a Health Insurance Exchange (HIX) premium payment grace period.",
2385 "767" => "Qualifications for emergent/urgent care",
2386 "768" => "Service date outside the accidental injury coverage period.",
2387 "769" => "DME Repair or Maintenance",
2388 "770" => "Duplicate of a claim processed or in process as a crossover/coordination of benefits claim.",
2389 "771" => "Claim submitted prematurely. Please resubmit after crossover/payer to payer COB allotted waiting period.",
2390 "772" => "The greatest level of diagnosis code specificity is required.",
2397 // end code271 array
2399 // edih_271_codes
2400 public function classname()
2402 return get_class($this);
2405 public function get_271_code($elem, $code)
2408 $e = (string)$elem;
2409 $val = '';
2410 if (($this->ds && strpos($code, $this->ds) !== false) || ($this->dr && strpos($code, $this->dr) !== false)) {
2411 if ($this->ds && strpos($code, $this->ds) !== false) {
2412 $cdar = explode($this->ds, $code);
2413 foreach ($cdar as $cd) {
2414 if ($this->dr && strpos($code, $this->dr) !== false) {
2415 $cdar2 = explode($this->dr, $code);
2416 foreach ($cdar2 as $cd2) {
2417 if (isset($this->code271[$e][$cd2])) {
2418 $val .= $this->code271[$e][$cd2] . '; ';
2419 } else {
2420 $val .= "code $cd2 N/A ";
2423 } else {
2424 $val .= (isset($this->code271[$e][$cd]) ) ? $this->code271[$e][$cd].' ' : "code $cd unknown ";
2427 } elseif ($this->dr && strpos($code, $this->dr) !== false) {
2428 $cdar = explode($this->dr, $code);
2429 foreach ($cdar as $cd) {
2430 $val .= (isset($this->code271[$e][$cd]) ) ? $this->code271[$e][$cd].'; ' : "code $cd unknown ";
2433 } elseif (array_key_exists($e, $this->code271)) {
2434 $val = (isset($this->code271[$e][$code]) ) ? $this->code271[$e][$code] : "$elem code $code unknown ";
2435 } else {
2436 $val = "$e codes not available ($code) ";
2440 return $val;
2443 public function get_keys()
2445 return array_keys($this->code271);