Apache Nifi RouteHL7 Issue - hl7

I am unable to understand how to use RouteHL7 processor in nifi, Can any one please guide me how to use that.
I want to add some property in RouteHL7 Processor. Please guide me how to use.
Thanks.

You add properties to the RouteHL7 processor the same way as for any other processor. There is a "+" button on the top right of the Properties tab of the Configure Processor dialog (right click on the processor and select Configure).
You then name the property (this will be the name of the connection relationship for any flowfiles that match) and provide your query value. For example:
glucose: DECLARE result AS REQUIRED OBX SELECT MESSAGE WHERE result.4 < 60
Then drag the connection from the RouteHL7 processor to your desired destination and select glucose as the relationship to route there.
I've posted this template as a Gist, and you can look at the unit tests for RouteHL7 to see other query examples.

Related

Serilog Seq Output Template

I am new to Serilog and to Seq. Sorry for the beginner question.
I want to have an output template that seems to be available in Serilog for the Console, but I can't seem to configure it in the WriteTo.Seq parameters.
Am I missing something or is this not available or is there another way to do this?
I was hoping to create a template constant and keep the format all in one place.
TIA
Seq uses signals with tagged properties for this.
Pick an event that has a property you want to show beside the message,
click the green "tick" to "Show as tag", and then
save the resulting signal so that you can apply it when you want to show the property inline.
The signal can be set as a default for your user account in (your username) > Preferences.

FireDAC - Show SQL after Macro Expantion

I am trying to use Macros in FireDAC to Preprocess my SQL Queries. I have a TADQuery object on a Data Module with the SQL set to something like:
Select * from MyTable
join OtherTable on MyTable.Key = OtherTable.Key
&Where
Then in my code I do this:
WhereClause = 'stuff based on my form';
Query.MacroByName('Where').AsRaw := WhereClause;
Query.Open;
This has worked great for complicated queries because it lets me make sure my fields and join conditions are correct using the SQL Property editor.
My problem is when the SQL statements ends up invalid because of my where clause. Is there any way to see the SQL after pre-processing that is going to be executed? Right now I am catching the FireDac errors and showing the SQL that is on EADDBEngineException object. However that is still showing my original SQL with the macros. If I can't get to it after the error happens is there anyway to force the Macro replacement to take place so I can look at the SQL in the debugger to help me see what is wrong.
If it matters I am connecting to a MS Access database with the goal of moving to SQL Server in the near future.
Apart from using Text property, to monitor what SQL is actually going to the database engine, consider using the "FDMonitor" FireDAC utility. According to the DokWiki pages (below):
drop a TFDMoniRemoteClientLink component on your form,
Set its Tracing property to True,
Add the MonitorBy=Xxx connection definition parameter to your existing FDConnection component. You can do this in the IDE object inspector, by selecting your FDConnection component, expanding the Params property, and setting MonitorBy to mbRemote.
Note that the TFDMoniXxxxClientLink should come before TFDConnection in the data module or form creation order, so adjust this by right clicking on the form or data module, then Creation Order, and moving the TFDMoni.. component above the FDConnection.
Also, it's helpful in the options of the TFDMoniXxxxClientLink, to disable most of the events being recorded, otherwise all the data returned is also shown in the FireDAC monitor. Expand the EventKinds property, and turn all the event kinds off, except for perhaps ekConnConnect, ekConnPrepare, and ekCmdExecute.
Then open the FireDAC Monitor from the IDE, (Tools > FireDAC Monitor). Start your app only once the monitor is running. Double click on a trace event (in the Trace Output tab), and you will see the actual SQL sent to the database in the bottom pane.
It also seems likely that adding the EventType of ekConnPrepare as mentioned above, would show you when the query's Prepare is called, but I haven't played enough with it say for sure.
Please see the following pages on the DocWiki for more information:
Overview: FDMonitor
How to: Tracing and Monitoring (FireDAC)
Other FireDAC utilities: Utilities (FireDAC)
(Just to remove this question from list of unanswered questions)
From comments:
Well, I've roughly checked what's happening there and I'm still not
sure if calling Prepare (which is useless for you as I get) is the
minimal requirement to trigger that preprocessing. Though, the
preprocessed SQL, the one which is sent to the DBMS you can access
through the Text property (quite uncommon name for such property). – TLama Feb
21 '14 at 8:18

Umbraco drop down list with content entered by admin - xpath dropdown?

In Umbraco 6.1, I need to add a field to a Document Type that gets it's possible values from a list that an admin user can add to via the back end.
I figured I'd do this by creating a Developer/Data Type of type XPath DropDownList and have that point to a folder in my Umbraco content through the XPath Expression //Configuration/lookup-lists/course-availability. I've set the Type of Document and Value to Node Id/
This drop down list isn't displaying the SimpleTextItems that are within this folder (its empty).
Any ideas?
I believe you're looking to select content from a specific folder in your content-tree, is this correct? Look into the Multi-Node Tree Picker in this case as you can configure this pick 1-n nodes in any specific folder or type..
If the above is not what you're looking for, you might also check the uComponents dropdown that an admin with access to the Developer section can edit the 'pre-values'.
Whatever you're looking for exactly - some data type in the uComponents package is most likely the answer. If not (u'd be surprised!), you may have to code your own .
Your XPath is incorrect.
your Xpath should be something like (loads all existing documents with doctype:SimpleText and in first level of Umbraco tree)
$ancestorOrSelf/ancestor-or-self::*[#level=1]/SimpleText
Please take a look at here to see correct Xpath samples for your dropdownlist

How do i change font type for settings.bundle

I want to create a acknowledgement section on the settings pane of my app, just like the one that apple created for the Airport Utilities...
I've created a child pane, that links to an acknowledgements.plist already... however, I can't figure out what type they used for writing the actual acknowledgments.
I assume that they use PSGroupSpecifier. http://www.bunnyhero.org/2011/02/14/descriptive-text-in-iphone-settings-bundles/ - this is pretty enough to know.
So, just remove title for group and add footer. All text will be nice formatted as in example.
(Spend over 2h to find any info because my group title was uppercase string)

Using Hyperlink Type ReportExecution in JasperReports Server

All I want to do is create a Drill down report from say report "one" to report "two"
I can't find ANY documentation or examples on how to use Hyperlink Type ReportExecution for JasperReports Server
It all seems straight forward but it doesn't work (parameters aren't sent through)
HOW ITS CURRENTLY SETUP:
Target is set to "Self"
Type is set to "ReportExecution"
In reference tab I have correct link (it links to drill-down report successfully)
"./flow.html?_flowId=viewReportFlow&reportUnit=%2FNWU%2FStudentInformation%2FCurriculumManagement%2FAPQIBI005drill"
Anchor and page tab is empty (have no Idea what to put here since I cant find any Docs on it)
Link parameters have values in that should work but aren't (double checked everything here many times)
campusAndFaculty | $P{campusAndFaculty}
campus | $F{cn_campusname.cn_campusid}
Tooltip Tab is empty
What am I doing wrong? Why aren't the params being sent through?
NOTE:
Using JasperReports Server Pro 5.0.1 &
Using iReport 5.0.0
I also know of the sample report (/Reports/Samples/Employee List report.), but our server doesn't have any sample reports
Remove the link from your Reference tab. On the Link parameters tab, add a parameter named
_report
and set the expression for _report to reflect the path to the target report:
"/reports/myFolder/myReport"
Remember to include the quotation marks.
Also, it would seem that the Jaspersoft document site is down at the moment, but for future reference you can access the iReport guide here:
http://community.jaspersoft.com/documentation?version=7114

Resources