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