I used ChatGPT to output this data now i am trying to send them to google sheet but i am not able to get the data from ChatGPT output since it is one variable. Following is my ChatGPT Module Output and Screenshot of my scenario:
[
{
“result”: “Here is the extracted data from the email:\n\n- Rx #: 177290-0\n- Fill Date: 07-03-2024\n- RPh: AE/NM\n- Drug Name: NURTEC 75MG ODT\n- NDC: 72618-3000-02\n- Qty: 16\n- Days: 30\n- DAW: 0\n- Service Provider ID: 1234567807; 01 - NPI Txn / Switch: B1 / RH\n\n- Patient: AHMED, SAAD\n- DOB: 01-01-2000\n- Address: 26 NELSON AVE GMERBURG NJ 07799\n- Phone: 480-720-8800\n\n- Prescriber: AHMAD, WAQAS\n- Phone: 790-260-1122\n- Address: 200 SHAMA RD STE 221 OLD STREET NJ 08901\n- NPI: 1234577495\n- DEA: FA3943289\n- Fax: 833-211-1122\n\n- Insurance: HORIZON NJFAMILYCARE; HORIZON NJ FAMILY CARE\n- BIN: 61001\n- PCN: AZZ\n- Phone: 800-902-2009\n- Card ID: 12345678\n- Group: HORIZON\n- NCPDP Version: D0\n\n- Rejections:\n - 70 - Product/Service Not Covered - Plan/Benefit Exclusion\n - 76 - Plan Limitations Exceeded\n\n- Authorization #: 090953112346024999\n\n- Additional Messages:\n -”,
“id”: “chatcmpl-9hbqJ9EkxJ1k5EkWHuy0GFY9trGhS”,
“object”: “chat.completion”,
“created”: “2024-07-05T11:56:39.000Z”,
“model”: “gpt-3.5-turbo-0125”,
“choices”: [
{
“index”: 0,
“message”: {
“role”: “assistant”,
“content”: “Here is the extracted data from the email:\n\n- Rx #: 177290-0\n- Fill Date: 07-03-2024\n- RPh: AE/NM\n- Drug Name: NURTEC 75MG ODT\n- NDC: 72618-3000-02\n- Qty: 16\n- Days: 30\n- DAW: 0\n- Service Provider ID: 1234567807; 01 - NPI Txn / Switch: B1 / RH\n\n- Patient: AHMED, SAAD\n- DOB: 01-01-2000\n- Address: 26 NELSON AVE GMERBURG NJ 07799\n- Phone: 480-720-8800\n\n- Prescriber: AHMAD, WAQAS\n- Phone: 790-260-1122\n- Address: 200 SHAMA RD STE 221 OLD STREET NJ 08901\n- NPI: 1234577495\n- DEA: FA3943289\n- Fax: 833-211-1122\n\n- Insurance: HORIZON NJFAMILYCARE; HORIZON NJ FAMILY CARE\n- BIN: 61001\n- PCN: AZZ\n- Phone: 800-902-2009\n- Card ID: 12345678\n- Group: HORIZON\n- NCPDP Version: D0\n\n- Rejections:\n - 70 - Product/Service Not Covered - Plan/Benefit Exclusion\n - 76 - Plan Limitations Exceeded\n\n- Authorization #: 090953112346024999\n\n- Additional Messages:\n -”
},
“logprobs”: null,
“finish_reason”: “length”
}
],
“usage”: {
“prompt_tokens”: 672,
“completion_tokens”: 350,
“total_tokens”: 1022
},
“system_fingerprint”: null
}
]
I think i need correct Regex for Text Parser please help