
Rule ID: RL00411
Rule Name: Duplicate Professional Medical Claim

IF There is matching related claim line(s) based on ALL of the following
    (Provider Id, Patient Id, Service Date From, Service Date To, Place Of Service, Procedure Code,
     Procedure Modifier (if it exists), Billed Amount)
   AND
    Form Type = Professional

  AND for the to score line:
     the Pay Flag is set to 'Y'
     the Place of Service does not = "24",
     the Source System = 'FBCS'

  AND for the matching line:
     the Pay Flag is set to 'Y',
     the Claim Status is not in {'Rejected', 'Denied'},
     the Source System = 'FBCS'

  AND
   the claim line to score and matching related claim line(s) do not have the same claim key

Then reason score = 1041

Rule ID: RL00421
Rule Name: Duplicate Institutional Claim

IF there is matching related claim line(s) based on ALL of the following
    (Provider Id, Patient Id, Bill Type (Optional))
 AND
    Form Type = Institutional
 AND
   'Claim line Statement Date From' is >= 'Matching Line Statement Date From'
       AND
   'Claim line Statement Date From' is < 'Matching line Statement Date To'
 OR
  'Claim line Statement Date From' < 'Matching line Statement Date From'
       AND
  'Claim line Statement Date To' > 'Matching line Statement Date From'

 AND for the to score line:
    the Pay Flag is set to 'Y',
    the Source System = 'FBCS'

AND for the matching line:
     the Pay Flag is set to 'Y',
     the Claim Status is not in {'Rejected', 'Denied'},
     the Source System = 'FBCS'
AND
   the claim line to score and matching related claim line(s) do not have the same claim key
Then reason score = 1042

Rule ID: RL00431
Rule Name: Duplicate Institutional OP Claim

IF There is matching related claim line(s) based on ALL of the following
    (Provider Id, Patient Id, Service Date, Bill Type (if it exists), Billed Amount, Procedure Code, Procedure Modifier (if it exists) )
  AND
    Form Type = Institutional

  AND for the to score line:
     the Pay Flag is set to 'Y',
     the Source System = 'FBCS'

  AND for the matching line:
     the Pay Flag is set to 'Y',
     the Claim Status is not in {'Rejected', 'Denied'},
     the Source System = 'FBCS'.

   AND
   the claim line to score and matching related claim line(s) do not have the same claim key

  Then Claim line score = 1043
