<?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: Talend Open Studio for Big Data: How to handle multiple one-to-many relationships within one JSON file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290011#M63340</link>
    <description>&lt;P&gt;Thank you for trying to help. These are the 3 json files (all .txt for attaching). forum is the file that has the schema I was talking about, then I'm joining it with a patient data file (and others) to produce something like the forumoutput file that I'm attaching.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvbp"&gt;forum.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvyh"&gt;forumoutput.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvym"&gt;TestPatient.txt&lt;/A&gt;</description>
    <pubDate>Tue, 18 Jun 2019 20:58:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-18T20:58:34Z</dc:date>
    <item>
      <title>Talend Open Studio for Big Data: How to handle multiple one-to-many relationships within one JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290009#M63338</link>
      <description>&lt;P&gt;As a follow-up to a previous question, and still as a rookie, having tried to figure out this myself trying and researching a lot, I need to ask for help once more.&lt;/P&gt; 
&lt;P&gt;I have a patient that has multiple cases, and those multiple cases each have multiple targets which have multiple results, of which there are multiple evidence, of which each consists of multiple vaccinations and multiple medications.&lt;BR /&gt;Something like this:&lt;/P&gt; 
&lt;P&gt;patient - result 1 -target 1 - evidence 1 - vaccination 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- medication 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- medication 2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- evidence 2 - vaccination 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- vaccination 2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - target 2 - evidence 1 - vaccination 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - medication 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - medication 2&lt;/P&gt; 
&lt;P&gt;I am able to isolate patient - to - evidence and show the multiple evidence one at a time. I don't see in the path loop expression where I could build for every multiple occurrence (see pic).&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="multiples.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5zH.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152646iAECC99677170A7AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5zH.jpg" alt="0683p000009M5zH.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I'm able to do (one property at a time&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="results.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5zR.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157499i3BEEA67AA9A71CAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5zR.jpg" alt="0683p000009M5zR.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like to be able to display in my output the full file, the patient to targets, to results, to evidence, to vaccinations, and to medication.&lt;BR /&gt;Basically, display it just as I receive it (it is going into a different format but same basic structure.)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you so much for any help you can give me.&lt;/P&gt; 
&lt;P&gt;Monica&lt;/P&gt; 
&lt;P&gt;Thank you very much!!!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290009#M63338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Open Studio for Big Data: How to handle multiple one-to-many relationships within one JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290010#M63339</link>
      <description>&lt;P&gt;Can you please provide some complete sample records in JSON and the exact expected output? &amp;nbsp;Then I can try to help you out.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 19:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290010#M63339</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-06-18T19:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Open Studio for Big Data: How to handle multiple one-to-many relationships within one JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290011#M63340</link>
      <description>&lt;P&gt;Thank you for trying to help. These are the 3 json files (all .txt for attaching). forum is the file that has the schema I was talking about, then I'm joining it with a patient data file (and others) to produce something like the forumoutput file that I'm attaching.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvbp"&gt;forum.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvyh"&gt;forumoutput.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvym"&gt;TestPatient.txt&lt;/A&gt;</description>
      <pubDate>Tue, 18 Jun 2019 20:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290011#M63340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-18T20:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Open Studio for Big Data: How to handle multiple one-to-many relationships within one JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290012#M63341</link>
      <description>&lt;P&gt;Thanks for providing the JSON samples, they are very helpful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do you know that you can pass a whole JSON node through as a string in the&amp;nbsp;&lt;SPAN&gt;tFileInputJSON&lt;/SPAN&gt; component?&amp;nbsp; If you select Xpath as the 'Read by' option, you can check 'Get nodes' for the the column you are interested in and that whole node and its sub-nodes will be passed through as a string instead of getting parsed.&amp;nbsp; See screenshot below of &lt;SPAN&gt;tFileInputJSON&lt;/SPAN&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It seems this would come in handy for you because you want to pass the whole 'result' node through untouched from your input to your output.&amp;nbsp; You also want to pass the 'patient' node the same way from the patients file.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blob_20160608-0820.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5vG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138180iBA851EFD07605264/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5vG.png" alt="0683p000009M5vG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;It seems the general plan for your job would be:&lt;/P&gt; 
&lt;P&gt;Read result data with &lt;SPAN&gt;tFileInputJSON&lt;/SPAN&gt;-&amp;gt; Parse patient id to Long and 'result' node as string with 'Get nodes' -&amp;gt; use as main input row to the tMap&lt;/P&gt; 
&lt;P&gt;Read patient data with &lt;SPAN&gt;tFileInputJSON&lt;/SPAN&gt;-&amp;gt; Parse patient id to Long and 'patient' node as string with 'Get nodes' -&amp;gt; use as the lookup row to the tMap&lt;/P&gt; 
&lt;P&gt;Join data on patient id in tMap -&amp;gt; Output your JSON as the patient node string followed by the result node string&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 21:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Open-Studio-for-Big-Data-How-to-handle-multiple-one-to/m-p/2290012#M63341</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-06-18T21:40:42Z</dc:date>
    </item>
  </channel>
</rss>

