<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Merging patient data with multiple claims and diagnostic/procedure codes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787024#M251380</link>
    <description>&lt;P&gt;I was given the following scenario. I know it involves a PROC TRANPOSE (or multiple) to get it from long data to wide data, but couldn't get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File1 contains patient identifying number, first name, last name, social security number, date of birth, and sex on 100,000 persons, with one record per patient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File2 contains medical claim information (n=300,000 records) on many but not all of the patients in File1. Each record in File2 includes the patient identifying number, claim date, claim number, up to two diagnosis codes, and up to two procedure codes, with potentially multiple claims per patient. The number of claims per patient is not the same for every patient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are asked to create File3 from File1 and File2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link the data in file1 to file2 on patient identifying number, producing file3 that contains one record per patient including patient identifying number, name, DOB, the first claim date, and all diagnosis and procedure codes for all claims for that person.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 22:43:11 GMT</pubDate>
    <dc:creator>cmolina989</dc:creator>
    <dc:date>2021-12-21T22:43:11Z</dc:date>
    <item>
      <title>Merging patient data with multiple claims and diagnostic/procedure codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787024#M251380</link>
      <description>&lt;P&gt;I was given the following scenario. I know it involves a PROC TRANPOSE (or multiple) to get it from long data to wide data, but couldn't get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File1 contains patient identifying number, first name, last name, social security number, date of birth, and sex on 100,000 persons, with one record per patient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File2 contains medical claim information (n=300,000 records) on many but not all of the patients in File1. Each record in File2 includes the patient identifying number, claim date, claim number, up to two diagnosis codes, and up to two procedure codes, with potentially multiple claims per patient. The number of claims per patient is not the same for every patient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are asked to create File3 from File1 and File2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link the data in file1 to file2 on patient identifying number, producing file3 that contains one record per patient including patient identifying number, name, DOB, the first claim date, and all diagnosis and procedure codes for all claims for that person.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 22:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787024#M251380</guid>
      <dc:creator>cmolina989</dc:creator>
      <dc:date>2021-12-21T22:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Merging patient data with multiple claims and diagnostic/procedure codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787030#M251385</link>
      <description>&lt;P&gt;Sounds like you can get your answer by joining /merging data. This would be easier for us if you provide some made up data and example of desired result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 23:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787030#M251385</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2021-12-21T23:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merging patient data with multiple claims and diagnostic/procedure codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787036#M251390</link>
      <description>&lt;P&gt;File 1 - do nothing&lt;/P&gt;
&lt;P&gt;File 2 - transpose so that you have one record per person with the detailed information required. See the long to wide transpose tutorials below, a data step is faster and more efficient, but for a beginner programmer the multiple transpose and join is likely easier to program and more intuitive. Plus it's fully dynamic for your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Match Merge the data after you've transposed them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p1phdzzlrc1wi8n1bpigstwt851o.htm" target="_blank"&gt;http://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p1phdzzlrc1wi8n1bpigstwt851o.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Transposing data tutorials:&lt;BR /&gt;Long to Wide:&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/modules/how-to-reshape-data-long-to-wide-using-proc-transpose/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/modules/how-to-reshape-data-long-to-wide-using-proc-transpose/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/modules/reshaping-data-long-to-wide-using-the-data-step/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/modules/reshaping-data-long-to-wide-using-the-data-step/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/410686"&gt;@cmolina989&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was given the following scenario. I know it involves a PROC TRANPOSE (or multiple) to get it from long data to wide data, but couldn't get it to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File1 contains patient identifying number, first name, last name, social security number, date of birth, and sex on 100,000 persons, with one record per patient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File2 contains medical claim information (n=300,000 records) on many but not all of the patients in File1. Each record in File2 includes the patient identifying number, claim date, claim number, up to two diagnosis codes, and up to two procedure codes, with potentially multiple claims per patient. The number of claims per patient is not the same for every patient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are asked to create File3 from File1 and File2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Link the data in file1 to file2 on patient identifying number, producing file3 that contains one record per patient including patient identifying number, name, DOB, the first claim date, and all diagnosis and procedure codes for all claims for that person.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 01:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787036#M251390</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-22T01:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Merging patient data with multiple claims and diagnostic/procedure codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787052#M251396</link>
      <description>&lt;P&gt;Unless you are planning to do some machine learning you probably do not want building some extremely wide dataset without any structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your research goal?&lt;/P&gt;
&lt;P&gt;Are you looking to find diagnostics codes that occur after a procedure? Perhaps to look for adverse events from the procedure?&lt;/P&gt;
&lt;P&gt;Are you looking to find procedure codes that occur after a diagnosis? Perhaps to looks for treatments for a disease?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 03:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-patient-data-with-multiple-claims-and-diagnostic/m-p/787052#M251396</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-22T03:58:11Z</dc:date>
    </item>
  </channel>
</rss>

