public C_DURATION create_c_duration_upper_unbounded(string a_minimum, bool includesMin) { C_DURATION result = new C_DURATION(); //interval_of_duration interval = new interval_of_duration(); //JAR: 30APR2007, AE-42 Support XML Schema 1.0.1 IntervalOfDuration interval = new IntervalOfDuration(); interval.lower = a_minimum; interval.lower_included = includesMin; interval.lower_includedSpecified = includesMin; interval.upper_included = false; interval.upper_includedSpecified = false; //interval.minimum = a_minimum; //interval.includes_minimum = includesMin; //interval.includes_maximum = false; result.range = interval; return result; }
C_DURATION VisitPrimitiveConstraint(C_DURATION primitiveConstraint) { System.Diagnostics.Trace.Assert(primitiveConstraint != null, "objectConstraint must not be null"); C_DURATION result = new C_DURATION(); result.assumed_value = primitiveConstraint.assumed_value; if (primitiveConstraint.pattern != null) result.pattern = primitiveConstraint.pattern.ToUpperInvariant(); result.range = primitiveConstraint.range; return result; }
public C_DURATION create_c_duration_from_pattern(string a_pattern) { C_DURATION result = new C_DURATION(); result.pattern = a_pattern; return result; }
protected virtual C_DURATION CloneDuration(openehr.openehr.am.archetype.constraint_model.primitive.Impl.C_DURATION o) { C_DURATION result = new C_DURATION(); if (o.has_assumed_value()) result.assumed_value = o.assumed_value().ToString(); if (o.pattern() != null) result.pattern = o.pattern().ToString(); result.range = cloneDurationRange(o.interval()); return result; }