Class StaticDef

All Implemented Interfaces:
Iterable<ProfileStructure>

public class StaticDef extends AbstractSegmentContainer

A "static message profile" (see HL7 2.5 section 2.12). Message profiles are a precise method of documenting message constraints, using a standard XML syntax defined by HL7 (introduced in version 2.5). XML message profiles define constraints on message content and structure in a well-defined manner, so that the conformance of a certain message to a certain profile can be tested automatically. There are several types of profiles:

  • HL7 Profiles - the standard messages (relatively loosely constrained)
  • Implementable Profiles - profiles with additional constraints such that all optionality has been removed (e.g. optional fields marked as "required" or "not supported").
  • Constrainable Profiles - any profile with optionality that can be further constrained.
Thus profiles can constrain other profiles. A typical case would be for a country to create a constrainable profile based on an HL7 profile, for a vendor to create a different constrainable profile based on the same HL7 profile, and for a hospital to create an implementable profile for a particular implementation that constrains both.

The MessageProfile class is a parsed object representation of the XML profile.

Author:
Bryan Tripp