1.0.4
Released:
Thu 05 30 2013 |
Status:
EOL |
Posted By:
justin.fyfe1 |
|
Release Notes
This update to Everest 1.0 includes functionality for generating xsi:type attributes on RMIM structures. This is particularly useful when inheriting custom classes from the core RMIM class items. This functionality is used as follows:
Extending an existing RMIM class to add your attributes:
/// <summary>
/// My Component Extension
/// </summary>
[Structure(Name = "Component", Model = "POCD_MT000040JF", StructureType = StructureAttribute.StructureAttributeType.MessageType)]
public class MyComponent1 : MARC.Everest.RMIM.UV.CDAr2.POCD_MT000040UV.Component1 {
/// <summary>
/// My Property
/// </summary>
[Property(Name = "property", Conformance = PropertyAttribute.AttributeConformanceType.Optional, SortKey = 1, PropertyType = PropertyAttribute.AttributeAttributeType.Traversable)]
public ST MyProperty { get; set; }
}
Then assign your class to the instance:
ClinicalDocument doc = new ClinicalDocument();
doc.ComponentOf = new MyComponent1() {
MyProperty = "Test!",
RealmCode = SET<CS<BindingRealm>>.CreateSET(BindingRealm.Canada)
};
The formatted results should contain the new xsi:type
<componentof xsi:type="POCD_MT000040JF.Component">
<realmcode code="CA" />
<property language="en-US">Test!</property>
</componentof>