claims-x12-dsl-0.1.0.0: Type-safe DSL for healthcare claims validation and X12 processing
Safe HaskellSafe-Inferred
LanguageHaskell2010

Claims.Types

Synopsis

Core Domain Types

data Claim Source #

Represents a healthcare claim

Instances

Instances details
Show Claim Source # 
Instance details

Defined in Claims.Types

Methods

showsPrec :: Int -> Claim -> ShowS #

show :: Claim -> String #

showList :: [Claim] -> ShowS #

Eq Claim Source # 
Instance details

Defined in Claims.Types

Methods

(==) :: Claim -> Claim -> Bool #

(/=) :: Claim -> Claim -> Bool #

data ClaimType Source #

Types of healthcare claims

Instances

Instances details
Show ClaimType Source # 
Instance details

Defined in Claims.Types

Eq ClaimType Source # 
Instance details

Defined in Claims.Types

data ValidationResult Source #

Result of claim validation

Constructors

Valid 
Invalid Text 

Instances

Instances details
Show ValidationResult Source # 
Instance details

Defined in Claims.Types

Eq ValidationResult Source # 
Instance details

Defined in Claims.Types

Rule Types

Smart Constructors

greaterThan :: Decimal -> Rule Bool Source #

Smart constructor for amount greater than

lessThan :: Decimal -> Rule Bool Source #

Smart constructor for amount less than

between :: Decimal -> Decimal -> Rule Bool Source #

Smart constructor for amount between range

hasDx :: Text -> Rule Bool Source #

Smart constructor for has diagnosis code

hasPx :: Text -> Rule Bool Source #

Smart constructor for has procedure code

isType :: ClaimType -> Rule Bool Source #

Smart constructor for claim type check

pos :: Text -> Rule Bool Source #

Smart constructor for place of service check

reject :: Text -> Rule ValidationResult Source #

Smart constructor for reject action

approve :: Rule ValidationResult Source #

Smart constructor for approve action

needsReview :: Text -> Rule ValidationResult Source #

Smart constructor for review action