Online Help - Region 3: [CORE HL7 API Dialogs] |
Available only in the .Net Framework platform
Class: HL7DefinitionManager
NOTE: Requires one of the HL7Controllers.
Creation Code (C#): HL7DefinitionManager Mg = new HL7DefinitionManager(MyController);
The HL7DefinitionManager class exists to give you (the programmer) an entry point into our HL7Definition editing subsystem using the EditHL7Definition() method. We only give you the entry point which you can call to allow a user to enter the definition editor sub-system and provide you with the result of what that user did during that editing session. The perfect example of this is to download and play with our free CORE HL7 Definition Manager software which you can download from our website HERE. The source code for this little program is literally just ONE window (the main window) and everything else that you see when you use the software comes from this sub-system.
See EditHL7Definition() for a guide on how to implement.
Additional Dialog Resources Provided In This Class

CORE HL7 Definitions Manager (Main Window)
Method: ChooseDefinition()
Returns: HL7Definition Object (or null)
Declaration (C#): ChooseDefinition
(Form parentForm,
List<HL7Definition> ListofDefintions = null,
HL7Definition selectedDefinition = null)
Description: Launches a modal dialog to choose a HL7 Definition from a list provided by you (see Example Code below).
NOTE: Set the HelpURL property of the HL7DefinitionManager object before calling to enable the Online Help button.
Additional Properties And Utility Methods Provided In This Class
Property Name |
Data Type |
ExceptionHandling |
Uses the Standard Exceptions Interface |
AllowDefinitionRename |
bool - Set to false if you don't want to allow the user to rename the HL7 Definition when calling EditHL7Definition(). |
AllowHL7VersionChange |
bool - Set to false if you don't want to allow the user to change the HL7 Version when calling EditHL7Definition(). |
FileName |
string - The name of the file containing a HL7 Definition (see ShowFileName property) |
HelpURL |
string - Get or Set a URL string for online help for your application. If this property is set then Help buttons will be visible and enabled in any of the Dialog windows you open. |
ShowFileName |
bool - When calling EditHL7Definition(), you can set this to true (AND set the FileName property), and a display bar will show the file name. |
UserCancelled |
bool (read only) - Will be true if you call one of the Dialog methods like ChooseDefinition() or EditHL7Definition() and the user clicks Cancel or just closes the Dialog. |
Method |
Return Value |
ExceptionHandling |
Uses the Standard Exceptions Interface |
IsMandatoryDataType(string typeName) |
bool In the world of HL7 data types are absolutely mandatory and must be present in a HL7 Definition, Examples: ST, NM, TX, etc. In the editing sub-system they CANNOT be deleted. You can query using this method to determine if a Data Type is Mandatory. |
IsMandatorySegment(string segmentName) |
bool In the world of HL7 some segments are absolutely mandatory and must be present in a HL7 Definition, Examples: MSH, PID, etc. In the editing sub-system they CANNOT be deleted. You can query using this method to determine if a segment is Mandatory. |