public class ConformanceProfileRule extends AbstractMessageRule
ConformanceProfileRules.| Constructor and Description |
|---|
ConformanceProfileRule()
Creates an instance that tests messages against whatever profiles they declare in
MSH-21.
|
ConformanceProfileRule(String theProfileID) |
| Modifier and Type | Method and Description |
|---|---|
ValidationException[] |
apply(Message msg)
Applies to rule to an object to be checked
|
String |
getDescription()
Returns a text description of the rule.
|
String |
getProfileID() |
String |
getSectionReference()
Returns a string indicating the section of the HL7 standard from which this rule
is derived (if applicable).
|
void |
setEnableCaching(boolean enableCaching) |
testfailed, failed, failed, failed, failedWithValue, getErrorCode, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeveritypublic ConformanceProfileRule()
public ConformanceProfileRule(String theProfileID)
theProfileID - the ID of a constant profile against which to test all messages
(instead of the profiles they declare in MSH-21). The ID is evaluated in a way
that the corresponding profile file is expected to be BASEDIR/profiles/ID.xml.public ValidationException[] apply(Message msg)
Rulemsg - object to be checkedMessageRule.test(ca.uhn.hl7v2.model.Message)public String getDescription()
RulegetDescription in interface Rule<Message>getDescription in class RuleSupport<Message>Rule.getDescription()public String getSectionReference()
RulegetSectionReference in interface Rule<Message>getSectionReference in class RuleSupport<Message>Rule.getSectionReference()public String getProfileID()
public void setEnableCaching(boolean enableCaching)
Copyright © 2001–2017 University Health Network. All rights reserved.