I am adding the MRN field to our superbill and I know that I have to modify the stored procedure for it to pull in. I have actually done this before in the past but it was a few years ago. I have actually already fixed a few other issues by creating my own custom cusMPMSuperBill stored procedure.
Now I know that in the CR that there is no field specifically labeled as MedicalRecordNumber so I was going to use one of the Unknown fields. I decided to use Unknown9 and I have added it to my stored procedure and ran it so that it saved it to the stored procedure. Everything looks good but it is still not showing up.
Here is the section of the stored procedure that I have it stored.
SELECT
'310.PatEmpStatus'=IsNull(ml3.Description,''),
'311.PatStudentStatus'=IsNull(ml4.Description,''),
'312.PatMaritalStatus'=IsNull(ml5.Description,''),
'313.PatResidence'=IsNull(ml7.Description,''),
'314.PatientID' = pp.PatientID,
'309.PatientIDNumeric' = CASE WHEN isnumeric(pp.PatientID) = 1 and len(pp.PatientId) <= 9 THEN convert(int, pp.PatientID) ELSE 0 END,
'326.Unknown9'= pp.MedicalRecordNumber,
'315.PatientRelationToGuarantor'=IsNull(ml6.Description,''),
'316.GuarantorName'=IsNull(g.First,'')+' '+isnull(g.Middle,'')+' '+isnull(g.Last,''),
'317.GuarantorAddr1'=IsNull(g.Address1,''),
'318.GuarantorAddr2'=IsNull(g.Address2,''),
'319.GuarantorCity'=IsNull(g.City,''),
'320.GuarantorState'=IsNull(g.State,''),
'321.GuarantorZip'=IsNull(g.Zip,''),
'322.GuarantorCountry' = ISNULL(g.Country, ''),
'323.GuarantorPhone'=IsNull(g.Phone1,''),
'324.PatientFinancial'=IsNull(ml.Description,''),
'325.Allocation'=IsNull(al.Name,'')
Any Ideas on what I am missing? Cause I sure cant find it.
Never mind. I figured it out myself. Forgot that you have to use the corresponding unknown field with the numbered position that is used in the stored procedure. In my case, I needed to do it this way:
'326.Unknown326'= pp.MedicalRecordNumber
Doh!