<?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 Re: attribute a patient to a provider based on the charges of service &amp;amp; calculate a proportion in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/attribute-a-patient-to-a-provider-based-on-the-charges-of/m-p/402564#M12239</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/161016"&gt;@hkim30&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I find it close to impossible to give you an answer based on the information provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data (post a SAS data step creating such data), show us how the desired result should look like and then explain us the logic how you get from your &lt;EM&gt;have&lt;/EM&gt; data to the desired result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 01:56:52 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-10-10T01:56:52Z</dc:date>
    <item>
      <title>attribute a patient to a provider based on the charges of service &amp; calculate a proportion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/attribute-a-patient-to-a-provider-based-on-the-charges-of/m-p/402493#M12238</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so, so much for your attention in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been wrestling with these tasks so hard for many days and couldn't find the answers.&lt;BR /&gt;I would greatly appreciate if anyone could share your knowledge to help me out.&lt;BR /&gt;Please let me know if you need any clarification regarding my original question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set (Medicare Part B Carrier line file) that has multiple lines of observation for each ID, and each ID can be treated&lt;BR /&gt;in multiple providers/practices identified as TINs. I need to attribute each ID to a TIN based on the&amp;nbsp;total of allowed charges.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following variables in the data set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(variable name: variable description)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;bene_id&lt;/STRONG&gt;: ID&lt;BR /&gt;&lt;STRONG&gt;tax_num&lt;/STRONG&gt;: TIN (Tax identification number)&lt;BR /&gt;&lt;STRONG&gt;f_f2f_office&lt;/STRONG&gt;: Face-to-face office visit indicator (0/1)&lt;BR /&gt;&lt;STRONG&gt;f_onc&lt;/STRONG&gt;: Oncologist indicator&lt;BR /&gt;&lt;STRONG&gt;f_pcp&lt;/STRONG&gt;: Primary Care Physician indicator (0/1)&lt;BR /&gt;&lt;STRONG&gt;alowd_chrg_amt&lt;/STRONG&gt;: Allowed charges for each service&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A. I want to create three new variables (practice_any, practice_pcp, and practice_onc, for example).&lt;/P&gt;&lt;P&gt;How can I create these three variables assigning a TIN number to all the individuals?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) One step for a variable "practice_any" is to assign a TIN to an ID&lt;BR /&gt;, which has the largest total of allowed charges (by the TIN) for office visits from any physician.&lt;/P&gt;&lt;P&gt;(2) Another step to create a variable "practice_pcp" is to assign a TIN to an ID, which&lt;BR /&gt;has the largest total of allowed charges &lt;SPAN&gt;(by the TIN)&amp;nbsp;&lt;/SPAN&gt;for office visits with primary care physicians.&lt;/P&gt;&lt;P&gt;(3) Last step to create a variable "practice_onc" is to assign a TIN to an ID,&lt;BR /&gt;which has the largest total of allowed charges &lt;SPAN&gt;(by the TIN)&amp;nbsp;&lt;/SPAN&gt;for office visits with oncologists.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;B. Lastly, of all the face-to-face office visits offered for each person, regardless of the TIN difference,&lt;BR /&gt;I want to create variables of a proportion of specialty care and primary care received by, respectively. How can I program this..?&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I can think of right now is to try proc sql to calcuate percentage.. Please enlighten me!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much and I look forward to any help! I want to express my sincere appreciation to anyone who is willing to spend your valued time to share your knowledge. Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 19:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/attribute-a-patient-to-a-provider-based-on-the-charges-of/m-p/402493#M12238</guid>
      <dc:creator>hkim30</dc:creator>
      <dc:date>2017-10-09T19:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: attribute a patient to a provider based on the charges of service &amp; calculate a proportion</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/attribute-a-patient-to-a-provider-based-on-the-charges-of/m-p/402564#M12239</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/161016"&gt;@hkim30&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I find it close to impossible to give you an answer based on the information provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data (post a SAS data step creating such data), show us how the desired result should look like and then explain us the logic how you get from your &lt;EM&gt;have&lt;/EM&gt; data to the desired result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 01:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/attribute-a-patient-to-a-provider-based-on-the-charges-of/m-p/402564#M12239</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-10-10T01:56:52Z</dc:date>
    </item>
  </channel>
</rss>

