<?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: Looking for Feedback and Suggestions: New CONSORT Diagram Macro in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/762979#M21889</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18293"&gt;@Norman21&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a great effort of Jeffrey to try an automated solution for this very difficult task, and the outcome so far is very helpful and promising.&amp;nbsp; I agree with Norman21 on 1) and 2).&amp;nbsp; 3. has a bad link, and it probably refers to a&amp;nbsp;Prashant Hebbar's paper, and here is one:&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3149-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3149-2019.pdf&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hebba's work was amazing but not general enough and it's not about to automate this process.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shane Rosanbalm' work, of Rho Inc.,&amp;nbsp;&amp;nbsp;&lt;A href="https://www.lexjansen.com/pharmasug/2019/DV/PharmaSUG-2019-DV-021.pdf," target="_blank"&gt;https://www.lexjansen.com/pharmasug/2019/DV/PharmaSUG-2019-DV-021.pdf,&lt;/A&gt;&amp;nbsp; is very closed to automate the process, he wrote 3 macros to handle the boxes, links and text positions and they are quite general.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ryan Yu, of Regeneron, published a paper to claim he automated the process, using Shane's macros,&amp;nbsp;&lt;A href="https://www.lexjansen.com/pharmasug/2021/DV/PharmaSUG-2021-DV-082.pdf," target="_blank"&gt;https://www.lexjansen.com/pharmasug/2021/DV/PharmaSUG-2021-DV-082.pdf,&lt;/A&gt;&amp;nbsp;but we haven't see the code yet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides 1. and 2 from Norman21, Figure 3 in this link:&amp;nbsp;&lt;A href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2222221/pdf/1745-6215-8-36.pdf" target="_blank"&gt;https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2222221/pdf/1745-6215-8-36.pdf&lt;/A&gt;&amp;nbsp;is a little bit&amp;nbsp;&lt;SPAN&gt;challenge for Jeffrey to try.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have explored a different method to draw a CONSORT diagram.&amp;nbsp; See the attached.&amp;nbsp; It uses Microsoft Word/RTF's Shapes, boxes and arrows here and only SAS data _null_ was used in the generation of the file.&amp;nbsp; The outcome is an RTF file, but it's totally not what in Art Carpenter's head when he talked about using RTF file to automation of CONSORT diagram:&amp;nbsp;&lt;A href="https://www.lexjansen.com/pharmasug/2012/TF/PharmaSUG-2012-TF16.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug/2012/TF/PharmaSUG-2012-TF16.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 20:57:21 GMT</pubDate>
    <dc:creator>Jianmin</dc:creator>
    <dc:date>2021-08-20T20:57:21Z</dc:date>
    <item>
      <title>Looking for Feedback and Suggestions: New CONSORT Diagram Macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/656535#M20024</link>
      <description>&lt;P&gt;One of my favorite things to do is to write macros to make tables/graphics/reports/etc.&amp;nbsp; Some of my best ones can be found on this site (NEWSURV, MVMODELS, TABLEN, CIRCOS, DATA_SPECS, COMPARE_ALL), and a new one that I have been developing has focused on making a Consort diagram.&amp;nbsp; In the past I've had to use software like Word, Visio, and PowerPoint to make these diagrams as I hadn't found a way to do it programmatically.&amp;nbsp; I've seen cases where an RTF document somehow has numbers filled in to an existing chart, but didn't like that approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My macro focuses on using TEXT plots to make the text boxes and then connects them with line statements based on the anchors of the text boxes.&amp;nbsp; Here is an example of one that I made with my current macro:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="_consort.png" style="width: 799px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/42153iDDBBD40C6FBD56E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="_consort.png" alt="_consort.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The macro call that I needed to use to make this was:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%consort(data=for_consort,id=subject,
    node=screened randomized treated ntrt4 ntrt8 ntrtv2 surg adj compadj, 
    split=* arm,
    offreason=scrnrsn endatrsn endrsn2)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The options stand for:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;DATA: one row per patient data set where the variables to be used in NODE live&lt;/LI&gt;
&lt;LI&gt;ID: patient ID variable used for counts&lt;/LI&gt;
&lt;LI&gt;NODE: list of variables that determine the different nodes (or boxes) in the consort. e.g. randomization, went to surgery, etc.&amp;nbsp; The value of the variable is used as the text in the text box.&amp;nbsp; Should only be one unique value within each branch of the consort.&amp;nbsp; If a patient doesn't exist in the node then the value should be missing for that variable.&lt;/LI&gt;
&lt;LI&gt;SPLIT: Determines when the consort will split.&amp;nbsp; Currently only works with one split, but am working to make it work with more.&amp;nbsp; The node will still be shown (randomization in the above example), and then the split will happen and the counts will be shown for each level of the SPLIT variable.&amp;nbsp; * indicates no split, and the last value of split is carried forward through further nodes if left missing&lt;/LI&gt;
&lt;LI&gt;OFFREASON: When a patient is found in one node but not in the following node, they are counted as going "off treatment" and placed into a box branching from the consort.&amp;nbsp; The reasons listed in the box are pulled from these variables, with the label of the variable being used as the header for the text box.&amp;nbsp; The last variable is carried forward through further nodes if left missing.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The macro calculates the x/y coordinates of the boxes as well as the lines that connect them before drawing.&amp;nbsp; There are also methods within the macro to manually make the dataset for more complicated consorts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My questions are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Does the macro call make sense to use?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;What are features that you would want in a consort diagram macro?&lt;/LI&gt;
&lt;LI&gt;Has this already been done before?&amp;nbsp; I've seen SAS programs from SAS workers but not using the same methodology or automation&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Any feedback or suggestions are appreciated!&amp;nbsp; I've been rather excited by the challenge of making this program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 19:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/656535#M20024</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-06-10T19:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Feedback and Suggestions: New CONSORT Diagram Macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/660009#M20080</link>
      <description>&lt;P&gt;Very interesting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Yes, this looks useful. As a suggestion, try and make output look like the following:&amp;nbsp;&lt;A href="http://www.consort-statement.org/consort-statement/flow-diagram" target="_blank"&gt;http://www.consort-statement.org/consort-statement/flow-diagram&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. It would be useful to have a check on the numbers to ensure they add up correctly. For example, started adjuvant treatment n=22 minus off treatment n=3 should equal completed adjuvant treatment n=19. Also, it would be good to have output options e.g. PDF or RTF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Yes - see&amp;nbsp;&lt;A href="https://www.phusewiki.org/docs/Conference%202016%20PP%20Papers/PP03.pdf" target="_blank"&gt;https://www.phusewiki.org/docs/Conference%202016%20PP%20Papers/PP03.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 11:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/660009#M20080</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2020-06-16T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Feedback and Suggestions: New CONSORT Diagram Macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/660023#M20081</link>
      <description>&lt;P&gt;Definitely useful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggest you see similar:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3149-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3149-2019.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/10/20/outside-box-consort-diagram/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2016/10/20/outside-box-consort-diagram/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/660023#M20081</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2020-06-16T13:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Feedback and Suggestions: New CONSORT Diagram Macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/660604#M20087</link>
      <description>Thank you!  I got to attend Prashant's talk and it inspired me to try to code it myself!  I love picking up fun new ideas at conferences.</description>
      <pubDate>Wed, 17 Jun 2020 03:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/660604#M20087</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-06-17T03:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Feedback and Suggestions: New CONSORT Diagram Macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/660605#M20088</link>
      <description>Thank you for the feedback and suggestions.  I'm still experimenting with putting in additional features like different kinds of bullet points and those sub-header style boxes in the example you showed.  I'll definitely keep the reference in mind.&lt;BR /&gt;&lt;BR /&gt;For number two the macro doesn't take input on the off treatment boxes. It compares which patients were in the previous node (started adjuvant treatment) that are not in the current node (completed adjuvant treatment) and files them into the off treatment box using the OFFREASON variable for the reason why.  I'm trying to automate this as much as possible.  Even if the off treatment variable is missing they would still be included in the off treatment box.</description>
      <pubDate>Wed, 17 Jun 2020 03:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/660605#M20088</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-06-17T03:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Feedback and Suggestions: New CONSORT Diagram Macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/762979#M21889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18293"&gt;@Norman21&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a great effort of Jeffrey to try an automated solution for this very difficult task, and the outcome so far is very helpful and promising.&amp;nbsp; I agree with Norman21 on 1) and 2).&amp;nbsp; 3. has a bad link, and it probably refers to a&amp;nbsp;Prashant Hebbar's paper, and here is one:&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3149-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3149-2019.pdf&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hebba's work was amazing but not general enough and it's not about to automate this process.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shane Rosanbalm' work, of Rho Inc.,&amp;nbsp;&amp;nbsp;&lt;A href="https://www.lexjansen.com/pharmasug/2019/DV/PharmaSUG-2019-DV-021.pdf," target="_blank"&gt;https://www.lexjansen.com/pharmasug/2019/DV/PharmaSUG-2019-DV-021.pdf,&lt;/A&gt;&amp;nbsp; is very closed to automate the process, he wrote 3 macros to handle the boxes, links and text positions and they are quite general.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ryan Yu, of Regeneron, published a paper to claim he automated the process, using Shane's macros,&amp;nbsp;&lt;A href="https://www.lexjansen.com/pharmasug/2021/DV/PharmaSUG-2021-DV-082.pdf," target="_blank"&gt;https://www.lexjansen.com/pharmasug/2021/DV/PharmaSUG-2021-DV-082.pdf,&lt;/A&gt;&amp;nbsp;but we haven't see the code yet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides 1. and 2 from Norman21, Figure 3 in this link:&amp;nbsp;&lt;A href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2222221/pdf/1745-6215-8-36.pdf" target="_blank"&gt;https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2222221/pdf/1745-6215-8-36.pdf&lt;/A&gt;&amp;nbsp;is a little bit&amp;nbsp;&lt;SPAN&gt;challenge for Jeffrey to try.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have explored a different method to draw a CONSORT diagram.&amp;nbsp; See the attached.&amp;nbsp; It uses Microsoft Word/RTF's Shapes, boxes and arrows here and only SAS data _null_ was used in the generation of the file.&amp;nbsp; The outcome is an RTF file, but it's totally not what in Art Carpenter's head when he talked about using RTF file to automation of CONSORT diagram:&amp;nbsp;&lt;A href="https://www.lexjansen.com/pharmasug/2012/TF/PharmaSUG-2012-TF16.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug/2012/TF/PharmaSUG-2012-TF16.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 20:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/762979#M21889</guid>
      <dc:creator>Jianmin</dc:creator>
      <dc:date>2021-08-20T20:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Feedback and Suggestions: New CONSORT Diagram Macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/762981#M21890</link>
      <description>It doesn't show up in searches easily, but I presented my mostly finished macro at the global forum this year: &lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/Methods-of-a-Fully-Automated-CONSORT-Diagram-Macro-CONSORT/ta-p/726358" target="_blank"&gt;https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/Methods-of-a-Fully-Automated-CONSORT-Diagram-Macro-CONSORT/ta-p/726358&lt;/A&gt;</description>
      <pubDate>Fri, 20 Aug 2021 21:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Looking-for-Feedback-and-Suggestions-New-CONSORT-Diagram-Macro/m-p/762981#M21890</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2021-08-20T21:01:16Z</dc:date>
    </item>
  </channel>
</rss>

