<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mayuravaani Mathuranathan on Medium]]></title>
        <description><![CDATA[Stories by Mayuravaani Mathuranathan on Medium]]></description>
        <link>https://medium.com/@mayuravaani?source=rss-d73b70e11778------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*OKdMdI4kZhvlVX9p</url>
            <title>Stories by Mayuravaani Mathuranathan on Medium</title>
            <link>https://medium.com/@mayuravaani?source=rss-d73b70e11778------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:13:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mayuravaani/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Happy Numbers, Unhappy Numbers & Prime Numbers with Programming]]></title>
            <link>https://mayuravaani.medium.com/happy-numbers-unhappy-numbers-prime-numbers-with-programming-d9b3fd242ad9?source=rss-d73b70e11778------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9b3fd242ad9</guid>
            <category><![CDATA[happy-number]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[flowchart]]></category>
            <category><![CDATA[prime-numbers]]></category>
            <dc:creator><![CDATA[Mayuravaani Mathuranathan]]></dc:creator>
            <pubDate>Tue, 27 Apr 2021 01:27:34 GMT</pubDate>
            <atom:updated>2021-04-27T01:27:34.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*esDcS2pJvl2CVY-2KefDJA.jpeg" /></figure><p>Hi there! In this article, we will see about the happy numbers, unhappy numbers and prime numbers and how we can program it using java.</p><h4><strong><em>Happy Numbers</em></strong></h4><p>A happy number is a number which eventually reaches 1 when replaced by the sum of the square of each digit. For example, 19 is a happy number which could be explained as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*eATuNjGy1hIFImI-2JHviA.png" /></figure><h4><strong><em>Unhappy Numbers</em></strong></h4><p>Unhappy number is a number, when the number is replaced by sum of the square of each digit, the cycle will repeat infinitely. For example, 3 is a unhappy number which could be explained as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*JMHYhfHSPWjjrTfN-usMbA.png" /></figure><p>The unhappy number will result in 4,37,58,89,145,42,20,4,37,……</p><p><strong><em>Algorithm to find the given number is happy or not</em></strong></p><ol><li>Read the number</li><li>Calculate the sum of the square of all digits in the given number</li><li>Check whether the sum is 1 or 4</li><li>If the sum is 1 then return the given number is Happy</li><li>If the sum is 4 then return the given number is Unhappy</li><li>Otherwise number := sum</li><li>Repeat the iteration from step 2 until it reaches 1 or 4</li><li>End of the program</li></ol><p><strong><em>Flowchart</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*MEX5vWXb9SrR5oNKQGR8ag.png" /></figure><p><strong><em>Java Program to find whether the given number is happy or not</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11457072b5e70296a19fcea733fec454/href">https://medium.com/media/11457072b5e70296a19fcea733fec454/href</a></iframe><h4><strong>Prime Numbers</strong></h4><p>Prime numbers are numbers that have only 2 factors: 1 and themselves. For example, if we consider 7 it can be divide by 1 and itself. So this is called as prime number and number 4 can be divide by 2. So this is not a prime number.</p><p><strong><em>Algorithm to find the given number is prime or not</em></strong></p><ol><li>Read the number</li><li>Initialize i := 2, flag := true</li><li>if(number = 0 or number = 1) then do step 8</li><li>while(i ≤ number/2 and number != 2) do step 5 to 7</li><li>Calculate remainder(rem) of number divided by i</li><li>Increment the counter i ← i+1</li><li>if rem = 0 then flag ← false and do step 8</li><li>if flag = true return “Prime Number”</li><li>else return “Not a prime number”</li><li>End of the program</li></ol><p><strong><em>Flowchart</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*M2JfvE564ner2tcCw2X5jg.png" /></figure><p><strong><em>Java Program to find whether the given number is prime or not</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8a147483868d0dda101e3f977be8948/href">https://medium.com/media/e8a147483868d0dda101e3f977be8948/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9b3fd242ad9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hl7 Connector for WSO2 Stream Processor]]></title>
            <link>https://mayuravaani.medium.com/hl7-connector-for-wso2-stream-processor-b9893bd9deb0?source=rss-d73b70e11778------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9893bd9deb0</guid>
            <dc:creator><![CDATA[Mayuravaani Mathuranathan]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 14:24:31 GMT</pubDate>
            <atom:updated>2019-04-08T14:24:31.824Z</atom:updated>
            <content:encoded><![CDATA[<p>Hl7 connector enables WSO2 stream processor to send and receive hl7 message type which is used to pass<strong> health related data</strong> using HL7 Version 2 API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*-Nlbag-zdJc3ezBwiztMQg.png" /></figure><p>This connector uses Single port <strong>MLLP</strong> (Minimum Low Layer Protocol) Protocol to transfer the messages and has the transport layer security facility. This defaultly uses wso2carbon keystore to secure the data and user has the facility to customise it.</p><p><strong>HL7 MLLP Transport</strong></p><p>MLLP is the Minimum Low Layer Protocol used to transmit HL7 messages using TCP/IP. Because TCP transfer data as a continuous stream of bytes. So a wrapping protocol is required to recognize the start and end of the message. So It Is used as a wrapping protocol.</p><p>MLLP often use non-printable characters to serve as wrapping characters around the core HL7 messages and MLLP has no knowledge about the HL7 content insight. This wrapping characters envelop the HL7 message payload effectively as a block of data and then transmit to the receiving system.</p><p>Then the receiving system unwrap the message payload and parses the message content and acknowledge the receipt of the message by returning a response message by wrapping its message content as well.</p><p><strong>How to handle Hl7 Transport using Siddhi</strong></p><p>As a system, when a publisher with the <strong>@sink(type= ‘hl7’) </strong>annotation defined on top of a Siddhi Streams, it creates a Hl7 client and allows to send the HL7 messages using the MLLP protocol and receive the acknowledgement message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*-HSt52-P-9TV14Q4e-HY-w.png" /></figure><p>You can use a sample syntax as follows to <strong>send</strong> a Hl7 message to Hl7 Receiver .</p><pre>@sink(type=&quot;hl7&quot;, uri=&quot;&lt;STRING&gt;&quot;, hl7.encoding=&quot;&lt;STRING&gt;&quot;, hl7.ack.encoding=&quot;&lt;STRING&gt;&quot;, charset=&quot;&lt;STRING&gt;&quot;, tls.enabled=&quot;&lt;BOOL&gt;&quot;, tls.keystore.type=&quot;&lt;STRING&gt;&quot;, tls.keystore.filepath=&quot;&lt;STRING&gt;&quot;, tls.keystore.passphrase=&quot;&lt;STRING&gt;&quot;, hl7.timeout=&quot;&lt;INT&gt;&quot;, @map(...)))</pre><p>As a system, when a consumer with the <strong>@source(type= ‘hl7’)</strong> annotation defined on top of a Siddhi Streams, it creates a Hl7 server and allows to receive HL7 messages through MLLP protocol and send the Acknowledgement message to the sender.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*rJjLayZtZG0L04sgk0o4sQ.png" /></figure><p>You can use a sample syntax as follows to <strong>consume</strong> a message from Hl7 Sender.</p><pre>@source(type=&quot;hl7&quot;, port=&quot;&lt;INT&gt;&quot;, hl7.encoding=&quot;&lt;STRING&gt;&quot;, hl7.ack.encoding=&quot;&lt;STRING&gt;&quot;, charset=&quot;&lt;STRING&gt;&quot;, tls.enabled=&quot;&lt;BOOL&gt;&quot;, tls.keystore.type=&quot;&lt;STRING&gt;&quot;, tls.keystore.filepath=&quot;&lt;STRING&gt;&quot;, tls.keystore.passphrase=&quot;&lt;STRING&gt;&quot;, hl7.conformance.profile.used=&quot;&lt;BOOL&gt;&quot;, hl7.conformance.profile.file.path=&quot;&lt;STRING&gt;&quot;, @map(...)))</pre><p>It accepts both <strong>ER7</strong> and <strong>XML</strong> Hl7 Encoding types and uses parsers to parse the messages. User should define the actual encoding type of the message itself.</p><p>siddhi hl7 connector allows the user to validate the incoming messages as the user expected using <strong>Conformance Profile</strong>.</p><blockquote>A conformance profile framework presents a method for users of the standard to write a more detailed, less loose message specification. A profile must be based on one of the standard HL7 message specifications, but it is much more specific, in that it tightly constrains the optionality of fields, length of data, constant values, and number of repetitions of segments in messages. Profiles are written in XML. This feature enables automatic validation of a message against a profile.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9893bd9deb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling HAPI Test Panel]]></title>
            <link>https://mayuravaani.medium.com/handling-hapi-test-panel-e223d185c7cd?source=rss-d73b70e11778------2</link>
            <guid isPermaLink="false">https://medium.com/p/e223d185c7cd</guid>
            <category><![CDATA[health-systems]]></category>
            <category><![CDATA[hl7]]></category>
            <category><![CDATA[hapi]]></category>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Mayuravaani Mathuranathan]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 08:51:00 GMT</pubDate>
            <atom:updated>2019-03-08T08:51:00.729Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is HAPI Test Panel</h3><p>HAPI Test Panel is a full featured HL7 message editor, used to send and receive HL7 messages.</p><h3>Install TestPanel</h3><ul><li>Download hapi-testpanel-2.0.1-linux.tar.bz2 from <a href="https://sourceforge.net/projects/hl7api/files/hapi-testpanel/2.0.1/">here</a></li><li>Extract the download to your perfect location</li><li>In Ubuntu, run the testpanel.sh file which is at the Home of the Hapi Test Panel extraction</li><li>In Windows, run the testpanel Application which is at the Home of the Hapi Test Panel extraction</li></ul><h3>Sending HL7 messages using Testpanel</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*vgokLzF6LowOBF55zy25JA.png" /></figure><h3>Creating Sample HL7 Message</h3><ul><li>Go to <strong>Test</strong> menu and click <strong>Populate TestPanel with sample message and connections</strong></li><li>You can send the message by clicking the <strong>send</strong> button</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*iwc_xlpfBlCPecfkQ1ULWg.png" /></figure><h3>Sending HL7 messages</h3><ul><li>You can click the <strong>plus </strong>button which is in the <strong>Sending Connections</strong> panel in the left menu</li><li>You can give your appropriate Port number, encoding schemes and etc under the <strong>Setting</strong> menu</li><li>You can see the activities through the selected port under the Activity</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*oLUHqkayCPwAUkq-nEcF9A.png" /></figure><h3>Receiving HL7 messages</h3><ul><li>You can click the <strong>plus </strong>button which is in the <strong>Receiving Connections</strong> panel in the left menu</li><li>You can give your appropriate Port number, encoding schemes and etc under the <strong>Setting</strong> menu</li><li>You can see the activities through the selected port under the Activity</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*jer0gSa8fXZl_r3Cf9fuOA.png" /></figure><h3>Creating different type of HL7 messages</h3><ul><li>Go to <strong>File </strong>which is in the main menu and click the <strong>New Message</strong></li><li>Select the appropriate message version and message type</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*vofwdCA-rkL4GJPZ6otDBg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e223d185c7cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HL7- Intro]]></title>
            <link>https://mayuravaani.medium.com/hl7-intro-6bcdcec8de0?source=rss-d73b70e11778------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bcdcec8de0</guid>
            <category><![CDATA[hapi]]></category>
            <category><![CDATA[adt]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[hl7]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Mayuravaani Mathuranathan]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 08:41:06 GMT</pubDate>
            <atom:updated>2019-03-08T08:41:06.873Z</atom:updated>
            <content:encoded><![CDATA[<p>HL7 is an international standard used to exchange medical records between healthcare systems. It is introduced by Health level 7 international which is an non profit organization.</p><p>Health Level Seven refers to the seventh level(Application Layer) of OSI Model(Open System Interconnection). It specifies communication contents and exchange formats on the 7th layer on OSI.</p><p>Application layer addresses the definition of data to be exchanged, the timing of the interchange and communication of certain errors to the application.</p><p>Application layer function supports security check, availability check, exchange mechanism negotiation and data exchanging structuring.</p><h3>HL7 Version 2 Message Structure</h3><h3>Message</h3><p>Message is the smallest transferable unit in hl7 and is composed of segments. It begins with the message header Segment(MSH) and is identified by the message type and the initiating event (trigger event).</p><h3>Segments</h3><p>Segments are a way of grouping of items in a logical way. Segments are clearly identified by three letters located at the beginning(Segment Identifier) and are separated by segment separators.<br>Here, all segments beginning with Z are reserved for locally defined messages.</p><h3>Fields</h3><p>The information are contained in the fields of the segments. These fields are in variable length and are separated by field separators.<br>For each field. a data type is defined.<br>Field contents can be required or optional and individual fields can be repeated. <br>Multi component fields are used for further sub division of a field and facilitate the transmission of logically related contents.</p><h3>Abstract Message Syntax</h3><p>Hl7 Messages are structured using Abstract Message Syntax to enable straight forward exchange. This describes the frequency of occurrence (cardinality) and definition (required/optional/repeatable) of control and data segments in a message.<br>Required segments are identified by the segment identifiers, optional segments enclosed in [], repeatable in {}.</p><h3>Encoding Rules</h3><p>HL7 provides a specification for the presentation of data. The separating are as follows:</p><p>Every message begins with the information about the message itself.<br>| =&gt; Field Separator<br>^ =&gt; Component Separator<br>~ = Repetition Separator<br>\ =&gt; Escape Character<br>&amp; =&gt; Sub-component Separator</p><h3>Message Segments</h3><p>MSH =&gt; Message header<br>PID =&gt; patient identity<br>PV1 =&gt; patient visit information<br>NK1 =&gt; patient’s Next of Kin<br>EVN =&gt; event type<br>OBX =&gt; observation/result<br>AL1 =&gt; Allergy information <br>DG1 =&gt; Diagnosis information <br>DRG =&gt; Diagnosis related group <br>PR1 =&gt; procedures<br>ROL =&gt; Role<br>IN1 =&gt; Insurance<br>ACC =&gt; Accident information<br>ROL =&gt; Role<br>PDA =&gt; Patient death and autopsy</p><h3>Message Types</h3><p>ADT =&gt; Admission Transfer Discharge<br>ORM =&gt; Order (Pharmacy/ Treatment)<br>ORU =&gt; Observation Result<br>BAR =&gt; (Add/ Change) Billing Account<br>ACK=&gt; General Acknowledgement<br>DFT =&gt; Detailed Financial Transaction<br>MDM =&gt; Medical Document Management <br>MFN =&gt; Master Files Notification<br>RAS =&gt; Pharmacy/ Treatment Administration<br>RDE =&gt; Pharmacy/ Treatment Encoded Order<br>RGV =&gt; Pharmacy/ Treatment Give</p><h3>Message Structure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMoIGgevtdDOalKag0mSeQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bcdcec8de0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>