/** * Creates an ID based on a given URL */ public IdDt(UriDt theUrl) { setValue(theUrl.getValueAsString()); }
/** * Create a new DateTimeDt using an existing value. <b>Use this constructor with caution</b>, * as it may create more precision than warranted (since for example it is possible to pass in * a DateTime with only a year, and this constructor will convert to an InstantDt with * milliseconds precision). */ public InstantDt(BaseDateTimeDt theDateTime) { // Do not call super(foo) here, we don't want to trigger a DataFormatException setValue(theDateTime.getValue()); setPrecision(DEFAULT_PRECISION); setTimeZone(theDateTime.getTimeZone()); }
/** * Sets the value for <b>system</b> () * * <p> * <b>Definition:</b> * The identification of the code system that defines the meaning of the symbol in the code. * </p> */ public CodingDt setSystem( String theUri) { mySystem = new UriDt(theUri); return this; }
/** * Sets the value for <b>nameReference</b> () * * <p> * <b>Definition:</b> * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element * </p> */ public ElementDefinitionDt setNameReference( String theString) { myNameReference = new StringDt(theString); return this; }
/** * Sets the value for <b>lastUpdated</b> () * * <p> * <b>Definition:</b> * When the resource last changed - e.g. when the version changed * </p> */ public MetaDt setLastUpdatedWithMillisPrecision( Date theDate) { myLastUpdated = new InstantDt(theDate); return this; }
/** * Sets the value for <b>code</b> () * * <p> * <b>Definition:</b> * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) * </p> */ public CodingDt setCode( String theCode) { myCode = new CodeDt(theCode); return this; }
/** * Sets the value for <b>time</b> () * * <p> * <b>Definition:</b> * Indicates when this particular annotation was made * </p> */ public AnnotationDt setTimeWithSecondsPrecision( Date theDate) { myTime = new DateTimeDt(theDate); return this; }
/** * Sets the value for <b>mustSupport</b> () * * <p> * <b>Definition:</b> * If true, implementations that produce or consume resources SHALL provide \"support\" for the element in some meaningful way. If false, the element may be ignored and not supported * </p> */ public ElementDefinitionDt setMustSupport( boolean theBoolean) { myMustSupport = new BooleanDt(theBoolean); return this; }
/** * Sets the value for <b>value</b> () * * <p> * <b>Definition:</b> * The value of the measured amount. The value includes an implicit precision in the presentation of the value * </p> */ public QuantityDt setValue( long theValue) { myValue = new DecimalDt(theValue); return this; }
/** * Sets the value for <b>system</b> () * * <p> * <b>Definition:</b> * Establishes the namespace in which set of possible id values is unique. * </p> */ public IdentifierDt setSystem( String theUri) { mySystem = new UriDt(theUri); return this; }
/** * Sets the value for <b>max</b> () * * <p> * <b>Definition:</b> * Maximum cardinality of the base element identified by the path * </p> */ public Base setMax( String theString) { myMax = new StringDt(theString); return this; }
/** * Sets the value for <b>code</b> (Symbol in syntax defined by the system) * * <p> * <b>Definition:</b> A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) * </p> */ @Override public InternalCodingDt setCode(String theCode) { myCode = new CodeDt(theCode); return this; }
/** * Sets the value for <b>ordered</b> () * * <p> * <b>Definition:</b> * If the matching elements have to occur in the same order as defined in the profile * </p> */ public Slicing setOrdered( boolean theBoolean) { myOrdered = new BooleanDt(theBoolean); return this; }
/** * Sets the value for <b>system</b> () * * <p> * <b>Definition:</b> * The identification of the system that provides the coded form of the unit * </p> */ public QuantityDt setSystem( String theUri) { mySystem = new UriDt(theUri); return this; }
/** * Sets the value for <b>value</b> () * * <p> * <b>Definition:</b> * The portion of the identifier typically displayed to the user and which is unique within the context of the system. * </p> */ public IdentifierDt setValue( String theString) { myValue = new StringDt(theString); return this; }
/** * Sets the value for <b>code</b> () * * <p> * <b>Definition:</b> * A computer processable form of the unit in some unit representation system * </p> */ public QuantityDt setCode( String theCode) { myCode = new CodeDt(theCode); return this; }
/** * Sets the value for <b>text</b> () * * <p> * <b>Definition:</b> * A full text representation of the address * </p> */ public AddressDt setText( String theString) { myText = new StringDt(theString); return this; }
/** * Sets the value for <b>code</b> () * * <p> * <b>Definition:</b> * Name of Data type or Resource that is a(or the) type used for this element * </p> */ public Type setCode( String theCode) { myCode = new CodeDt(theCode); return this; }
/** * Sets the value for <b>title</b> () * * <p> * <b>Definition:</b> * A label or set of text to display in place of the data * </p> */ public AttachmentDt setTitle( String theString) { myTitle = new StringDt(theString); return this; }
/** * Sets the value for <b>version</b> (Version of the system - if relevant) * * <p> * <b>Definition:</b> The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes * is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged * </p> */ public InternalCodingDt setVersion(String theString) { myVersion = new StringDt(theString); return this; }