default.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import datetime
  2. def date(**_args):
  3. """#
  4. This function will return a data as presented in the {x12} i.e it could be a date-range or a single date
  5. - In the case of a single data it is returned as a string
  6. - In the case of a range a complex object is returned with to,from keys
  7. NOTE: dates will be formatted as they
  8. """
  9. if not _args :
  10. return ['from','to','type']
  11. _date = ""
  12. return _date
  13. def procedure (**_args):
  14. """
  15. This function will parse SVC element and return given the following The return object is as follows :
  16. claim_id,charge_amount, payment_amount,patient_amount,patient_status,claim_status
  17. """
  18. cols = ['type','code','amount']
  19. if not _args :
  20. return cols
  21. _procedure = dict.fromkeys(cols,None)
  22. _row = _args['row']
  23. # _document = _args['document']
  24. if len(_row) == 3 :
  25. _procedure = dict(zip(cols,_row[1:4]))
  26. return _procedure
  27. return _info
  28. def SV2(**_args):
  29. pass
  30. def SV3(**_args):
  31. pass
  32. def HL (**_args):
  33. pass
  34. def HI(**_args):
  35. pass