+ Reply to Thread
Results 1 to 5 of 5

Help With PowerQuery to expand coding data

  1. #1
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Red face Help With PowerQuery to expand coding data

    Hi All,

    Hope you are doing well!..I am trying to expand the coding data in json format into the following categories...The input has the Billid and ctextid denoted as a patient visit... The codedby is the name of the first coder who performed the coding.. The worktype tells that if it is a coder record or qa (also known as auditor) record... Now I need to extract the JSON data and split into the following categories based on a set of rules (the following for both coder and auditor)..

    1) principalDiagnosis is the first code in the JSON under diagnosisCode
    2) SecondaryDiagnosis is the rest of the codes in JSON under diagnosisCode
    3)Injectioninfusion is taken under ChargeCode and has to have a range between 96372-96379( meaning all codes 96372,96373,96374,96375,96376,96377,96378,96379) , range between 96365-96371
    4) ObervationHours also taken ChargeCode and has to have a range between 99234-99236, 99218-99220,99224-99226,99231-99233
    5) professionalEvaluationManagement also taken as chargeCode have a range between 99201-99499
    6) The rest of the codes under ChargeCode come under cpt category

    The order of extraction of ChargeCode is as follows (Injection infusion and then ObservationHours and then professionalevaluationManagement and then cpt codes)
    7) Then it is modifiers ,hcpcsUnits.. - The sheet attached for this question is Sample Sheet-Correction Analysis

    I have attached the Excel sheet with the Input and the output required..Can you please help me here...

    Also the 2nd Question beiing:I have an input sheet which has the Billid and ctextid which denotes a patient visit and the column auditinfo which has the count of added,removed, correct and revised codes..I need to extract for the following categories principalDiagnosis secondaryDiagnosis injectionInfusion observationHours professionalEvaluationManagement cpt modifiers hcpcsUnits... Can you please help me here...Attached the file with input and output... Also i have added the counts only for the correct ones in the output sheet.... The sheet attached for this question is Sample for extracting counts...




    Thanks,
    Arun
    Last edited by chandramouliarun; 01-18-2021 at 05:36 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help With PowerQuery to expand coding data

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by Bo_Ry; 01-18-2021 at 01:59 PM.

  3. #3
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Help With PowerQuery to expand coding data

    @Bo_Ry: Thanks for this...Really Appreciate your help!..For the second question I am trying to expand it to removed as well as revised.. I have tried the following but I am getting the error saying that you had entered 6 arguments instead of 4 arguments... can you please help here..

    HTML Code: 
    Last edited by chandramouliarun; 01-19-2021 at 01:39 AM.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help With PowerQuery to expand coding data

    Forum rule 2. Programming code must be enclosed in code tags to improve readability.
    Please Login or Register  to view this content.
    Please put the
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Help With PowerQuery to expand coding data

    Thank you so much Bo_Ry..Appreciate your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help with PowerQuery to populate the error codes list from coding activity
    By chandramouliarun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2021, 10:01 AM
  2. [SOLVED] Powerquery Help to help extract values from JSON data
    By chandramouliarun in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-23-2020, 01:25 AM
  3. Email Send Data & PowerQuery
    By Narday in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-20-2020, 06:50 AM
  4. PowerQuery showing double the actual data of data source.
    By saudi_red_neck in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-17-2020, 11:04 AM
  5. Data Categorization using PowerQuery
    By Abbat in forum Excel General
    Replies: 3
    Last Post: 01-18-2019, 04:51 PM
  6. PowerQuery: Expand all columns after table join
    By Barslund in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2018, 04:59 AM
  7. Modify existing VBA coding to expand data retrieval
    By Saeber4777 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-06-2015, 12:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1