edix12

Pokitdok / X12 - Check on eligibility batch data


Maybe someone has experience with pokitdok I want to check on eligibility batch data, but this X12 query will return data with one item.

const data = {x12: `ISA*03*0123456789*01*1234567890*30*000000005      *30*12345          *131031*1147*^*00501*000000907*1*T*:~
GS*HS*000000005*12345*20131031*1147*1*X*005010X279A1~
ST*270*0001*005010X279A1~
  BHT*0022*13*10001234*20131031*1147~
  HL*1**20*1~
  NM1*PR*2*MOCKPAYER*****PI*MOCKPAYER~
  HL*2*1*21*1~
  NM1*1P*2*POKITDOK, INC.*****XX*1912301953~
  HL*3*2*22*0~
  TRN*1*930000000000*9800000004~
  NM1*IL*1*Doe*Jane****MI*W000000001~
  DMG*D8*19700101~
  DTP*291*D8*20131031~
  NM1*IL*1*Doe2*Jane****MI*W000000002~
  DMG*D8*19700202~
  DTP*291*D8*20131031~
SE*13*0001~
GE*1*1~IEA*1*000000907~`}

Somebody can help me with X12 loop?


Solution

  • Unless you've got a strict obligation or other compelling reason to continue using the raw X12 format in the implementation you're working on, I'd highly recommend moving to the simplified JSON format that PokitDok provides. (You can view the various format options here.) You can use the async parameter to "batch" by streaming in multiple calls (one per individual), and you can either capture the resulting activity_id values and retrieve the responses later through the Activities API or provide a callback_url so that the results get posted to you without needing to poll the system.

    The alternative at the moment is to transmit a properly formatted batch X12 file to us via SFTP (not via API, unfortunately), at which time we'll break it up and turn it into individual activities anyway. Hope that helps!

    Disclosure: I'm a Solutions Engineer for PokitDok.