
org.hl7.fhir.r4b.patterns.Fivews Maven / Gradle / Ivy
The newest version!
package org.hl7.fhir.r4b.patterns;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.exceptions.FHIRException;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Wed, May 8, 2019 10:40+1000 for FHIR v4.1.0
import org.hl7.fhir.r4b.model.Base;
import org.hl7.fhir.r4b.model.CodeableConcept;
import org.hl7.fhir.r4b.model.Configuration;
import org.hl7.fhir.r4b.model.DataType;
import org.hl7.fhir.r4b.model.DateTimeType;
import org.hl7.fhir.r4b.model.EnumFactory;
import org.hl7.fhir.r4b.model.Enumeration;
import org.hl7.fhir.r4b.model.Identifier;
import org.hl7.fhir.r4b.model.InstantType;
import org.hl7.fhir.r4b.model.Period;
import org.hl7.fhir.r4b.model.PrimitiveType;
import org.hl7.fhir.r4b.model.Reference;
import org.hl7.fhir.r4b.model.StringType;
import org.hl7.fhir.r4b.model.Timing;
/**
* Who What When Where Why - Common pattern for all resources that deals with
* attribution.
*/
public interface Fivews extends PatternBase {
public enum CanonicalStatus {
/**
* The resource was created in error, and should not be treated as valid (note:
* in many cases, for various data integrity related reasons, the information
* cannot be removed from the record)
*/
ERROR,
/**
* The resource describes an action or plan that is proposed, and not yet
* approved by the participants
*/
PROPOSED,
/**
* The resource describes a course of action that is planned and
* agreed/approved, but at the time of recording was still future
*/
PLANNED,
/**
* The information in the resource is still being prepared and edited
*/
DRAFT,
/**
* A fulfiller has been asked to perform this action, but it has not yet
* occurred
*/
REQUESTED,
/**
* The fulfiller has received the request, but not yet agreed to carry out the
* action
*/
RECEIVED,
/**
* The fulfiller chose not to perform the action
*/
DECLINED,
/**
* The fulfiller has decided to perform the action, and plans are in train to do
* this in the future
*/
ACCEPTED,
/**
* The pre-conditions for the action are all fulfilled, and it is imminent
*/
ARRIVED,
/**
* The resource describes information that is currently valid or a process that
* is presently occuring
*/
ACTIVE,
/**
* The process described/requested in this resource has been halted for some
* reason
*/
SUSPENDED,
/**
* The process described/requested in the resource could not be completed, and
* no further action is planned
*/
FAILED,
/**
* The information in this resource has been replaced by information in another
* resource
*/
REPLACED,
/**
* The process described/requested in the resource has been completed, and no
* further action is planned
*/
COMPLETE,
/**
* The resource describes information that is no longer valid or a process that
* is stopped occurring
*/
INACTIVE,
/**
* The process described/requested in the resource did not complete - usually
* due to some workflow error, and no further action is planned
*/
ABANDONED,
/**
* Authoring system does not know the status
*/
UNKNOWN,
/**
* The information in this resource is not yet approved
*/
UNCONFIRMED,
/**
* The information in this resource is approved
*/
CONFIRMED,
/**
* The issue identified by this resource is no longer of concern
*/
RESOLVED,
/**
* This information has been ruled out by testing and evaluation
*/
REFUTED,
/**
* Potentially true?
*/
DIFFERENTIAL,
/**
* This information is still being assembled
*/
PARTIAL,
/**
* not available at this time/location
*/
BUSYUNAVAILABLE,
/**
* Free for scheduling
*/
FREE,
/**
* Ready to act
*/
ONTARGET,
/**
* Ahead of the planned timelines
*/
AHEADOFTARGET,
/**
*
*/
BEHINDTARGET,
/**
* Behind the planned timelines
*/
NOTREADY,
/**
* The device transducer is disconnected
*/
TRANSDUCDISCON,
/**
* The hardware is disconnected
*/
HWDISCON,
/**
* added to help the parsers with the generic types
*/
NULL;
public static CanonicalStatus fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("error".equals(codeString))
return ERROR;
if ("proposed".equals(codeString))
return PROPOSED;
if ("planned".equals(codeString))
return PLANNED;
if ("draft".equals(codeString))
return DRAFT;
if ("requested".equals(codeString))
return REQUESTED;
if ("received".equals(codeString))
return RECEIVED;
if ("declined".equals(codeString))
return DECLINED;
if ("accepted".equals(codeString))
return ACCEPTED;
if ("arrived".equals(codeString))
return ARRIVED;
if ("active".equals(codeString))
return ACTIVE;
if ("suspended".equals(codeString))
return SUSPENDED;
if ("failed".equals(codeString))
return FAILED;
if ("replaced".equals(codeString))
return REPLACED;
if ("complete".equals(codeString))
return COMPLETE;
if ("inactive".equals(codeString))
return INACTIVE;
if ("abandoned".equals(codeString))
return ABANDONED;
if ("unknown".equals(codeString))
return UNKNOWN;
if ("unconfirmed".equals(codeString))
return UNCONFIRMED;
if ("confirmed".equals(codeString))
return CONFIRMED;
if ("resolved".equals(codeString))
return RESOLVED;
if ("refuted".equals(codeString))
return REFUTED;
if ("differential".equals(codeString))
return DIFFERENTIAL;
if ("partial".equals(codeString))
return PARTIAL;
if ("busy-unavailable".equals(codeString))
return BUSYUNAVAILABLE;
if ("free".equals(codeString))
return FREE;
if ("on-target".equals(codeString))
return ONTARGET;
if ("ahead-of-target".equals(codeString))
return AHEADOFTARGET;
if ("behind-target".equals(codeString))
return BEHINDTARGET;
if ("not-ready".equals(codeString))
return NOTREADY;
if ("transduc-discon".equals(codeString))
return TRANSDUCDISCON;
if ("hw-discon".equals(codeString))
return HWDISCON;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown CanonicalStatus code '" + codeString + "'");
}
public String toCode() {
switch (this) {
case ERROR:
return "error";
case PROPOSED:
return "proposed";
case PLANNED:
return "planned";
case DRAFT:
return "draft";
case REQUESTED:
return "requested";
case RECEIVED:
return "received";
case DECLINED:
return "declined";
case ACCEPTED:
return "accepted";
case ARRIVED:
return "arrived";
case ACTIVE:
return "active";
case SUSPENDED:
return "suspended";
case FAILED:
return "failed";
case REPLACED:
return "replaced";
case COMPLETE:
return "complete";
case INACTIVE:
return "inactive";
case ABANDONED:
return "abandoned";
case UNKNOWN:
return "unknown";
case UNCONFIRMED:
return "unconfirmed";
case CONFIRMED:
return "confirmed";
case RESOLVED:
return "resolved";
case REFUTED:
return "refuted";
case DIFFERENTIAL:
return "differential";
case PARTIAL:
return "partial";
case BUSYUNAVAILABLE:
return "busy-unavailable";
case FREE:
return "free";
case ONTARGET:
return "on-target";
case AHEADOFTARGET:
return "ahead-of-target";
case BEHINDTARGET:
return "behind-target";
case NOTREADY:
return "not-ready";
case TRANSDUCDISCON:
return "transduc-discon";
case HWDISCON:
return "hw-discon";
case NULL:
return null;
default:
return "?";
}
}
public String getSystem() {
switch (this) {
case ERROR:
return "http://hl7.org/fhir/resource-status";
case PROPOSED:
return "http://hl7.org/fhir/resource-status";
case PLANNED:
return "http://hl7.org/fhir/resource-status";
case DRAFT:
return "http://hl7.org/fhir/resource-status";
case REQUESTED:
return "http://hl7.org/fhir/resource-status";
case RECEIVED:
return "http://hl7.org/fhir/resource-status";
case DECLINED:
return "http://hl7.org/fhir/resource-status";
case ACCEPTED:
return "http://hl7.org/fhir/resource-status";
case ARRIVED:
return "http://hl7.org/fhir/resource-status";
case ACTIVE:
return "http://hl7.org/fhir/resource-status";
case SUSPENDED:
return "http://hl7.org/fhir/resource-status";
case FAILED:
return "http://hl7.org/fhir/resource-status";
case REPLACED:
return "http://hl7.org/fhir/resource-status";
case COMPLETE:
return "http://hl7.org/fhir/resource-status";
case INACTIVE:
return "http://hl7.org/fhir/resource-status";
case ABANDONED:
return "http://hl7.org/fhir/resource-status";
case UNKNOWN:
return "http://hl7.org/fhir/resource-status";
case UNCONFIRMED:
return "http://hl7.org/fhir/resource-status";
case CONFIRMED:
return "http://hl7.org/fhir/resource-status";
case RESOLVED:
return "http://hl7.org/fhir/resource-status";
case REFUTED:
return "http://hl7.org/fhir/resource-status";
case DIFFERENTIAL:
return "http://hl7.org/fhir/resource-status";
case PARTIAL:
return "http://hl7.org/fhir/resource-status";
case BUSYUNAVAILABLE:
return "http://hl7.org/fhir/resource-status";
case FREE:
return "http://hl7.org/fhir/resource-status";
case ONTARGET:
return "http://hl7.org/fhir/resource-status";
case AHEADOFTARGET:
return "http://hl7.org/fhir/resource-status";
case BEHINDTARGET:
return "http://hl7.org/fhir/resource-status";
case NOTREADY:
return "http://hl7.org/fhir/resource-status";
case TRANSDUCDISCON:
return "http://hl7.org/fhir/resource-status";
case HWDISCON:
return "http://hl7.org/fhir/resource-status";
case NULL:
return null;
default:
return "?";
}
}
public String getDefinition() {
switch (this) {
case ERROR:
return "The resource was created in error, and should not be treated as valid (note: in many cases, for various data integrity related reasons, the information cannot be removed from the record)";
case PROPOSED:
return "The resource describes an action or plan that is proposed, and not yet approved by the participants";
case PLANNED:
return "The resource describes a course of action that is planned and agreed/approved, but at the time of recording was still future";
case DRAFT:
return "The information in the resource is still being prepared and edited";
case REQUESTED:
return "A fulfiller has been asked to perform this action, but it has not yet occurred";
case RECEIVED:
return "The fulfiller has received the request, but not yet agreed to carry out the action";
case DECLINED:
return "The fulfiller chose not to perform the action";
case ACCEPTED:
return "The fulfiller has decided to perform the action, and plans are in train to do this in the future";
case ARRIVED:
return "The pre-conditions for the action are all fulfilled, and it is imminent";
case ACTIVE:
return "The resource describes information that is currently valid or a process that is presently occuring";
case SUSPENDED:
return "The process described/requested in this resource has been halted for some reason";
case FAILED:
return "The process described/requested in the resource could not be completed, and no further action is planned";
case REPLACED:
return "The information in this resource has been replaced by information in another resource";
case COMPLETE:
return "The process described/requested in the resource has been completed, and no further action is planned";
case INACTIVE:
return "The resource describes information that is no longer valid or a process that is stopped occurring";
case ABANDONED:
return "The process described/requested in the resource did not complete - usually due to some workflow error, and no further action is planned";
case UNKNOWN:
return "Authoring system does not know the status";
case UNCONFIRMED:
return "The information in this resource is not yet approved";
case CONFIRMED:
return "The information in this resource is approved";
case RESOLVED:
return "The issue identified by this resource is no longer of concern";
case REFUTED:
return "This information has been ruled out by testing and evaluation";
case DIFFERENTIAL:
return "Potentially true?";
case PARTIAL:
return "This information is still being assembled";
case BUSYUNAVAILABLE:
return "not available at this time/location";
case FREE:
return "Free for scheduling";
case ONTARGET:
return "Ready to act";
case AHEADOFTARGET:
return "Ahead of the planned timelines";
case BEHINDTARGET:
return "";
case NOTREADY:
return "Behind the planned timelines";
case TRANSDUCDISCON:
return "The device transducer is disconnected";
case HWDISCON:
return "The hardware is disconnected";
case NULL:
return null;
default:
return "?";
}
}
public String getDisplay() {
switch (this) {
case ERROR:
return "error";
case PROPOSED:
return "proposed";
case PLANNED:
return "planned";
case DRAFT:
return "draft";
case REQUESTED:
return "requested";
case RECEIVED:
return "received";
case DECLINED:
return "declined";
case ACCEPTED:
return "accepted";
case ARRIVED:
return "arrived";
case ACTIVE:
return "active";
case SUSPENDED:
return "suspended";
case FAILED:
return "failed";
case REPLACED:
return "replaced";
case COMPLETE:
return "complete";
case INACTIVE:
return "inactive";
case ABANDONED:
return "abandoned";
case UNKNOWN:
return "unknown";
case UNCONFIRMED:
return "unconfirmed";
case CONFIRMED:
return "confirmed";
case RESOLVED:
return "resolved";
case REFUTED:
return "refuted";
case DIFFERENTIAL:
return "differential";
case PARTIAL:
return "partial";
case BUSYUNAVAILABLE:
return "busy-unavailable";
case FREE:
return "free";
case ONTARGET:
return "on-target";
case AHEADOFTARGET:
return "ahead-of-target";
case BEHINDTARGET:
return "behind-target";
case NOTREADY:
return "not-ready";
case TRANSDUCDISCON:
return "transduc-discon";
case HWDISCON:
return "hw-discon";
case NULL:
return null;
default:
return "?";
}
}
}
public class CanonicalStatusEnumFactory implements EnumFactory {
public CanonicalStatus fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("error".equals(codeString))
return CanonicalStatus.ERROR;
if ("proposed".equals(codeString))
return CanonicalStatus.PROPOSED;
if ("planned".equals(codeString))
return CanonicalStatus.PLANNED;
if ("draft".equals(codeString))
return CanonicalStatus.DRAFT;
if ("requested".equals(codeString))
return CanonicalStatus.REQUESTED;
if ("received".equals(codeString))
return CanonicalStatus.RECEIVED;
if ("declined".equals(codeString))
return CanonicalStatus.DECLINED;
if ("accepted".equals(codeString))
return CanonicalStatus.ACCEPTED;
if ("arrived".equals(codeString))
return CanonicalStatus.ARRIVED;
if ("active".equals(codeString))
return CanonicalStatus.ACTIVE;
if ("suspended".equals(codeString))
return CanonicalStatus.SUSPENDED;
if ("failed".equals(codeString))
return CanonicalStatus.FAILED;
if ("replaced".equals(codeString))
return CanonicalStatus.REPLACED;
if ("complete".equals(codeString))
return CanonicalStatus.COMPLETE;
if ("inactive".equals(codeString))
return CanonicalStatus.INACTIVE;
if ("abandoned".equals(codeString))
return CanonicalStatus.ABANDONED;
if ("unknown".equals(codeString))
return CanonicalStatus.UNKNOWN;
if ("unconfirmed".equals(codeString))
return CanonicalStatus.UNCONFIRMED;
if ("confirmed".equals(codeString))
return CanonicalStatus.CONFIRMED;
if ("resolved".equals(codeString))
return CanonicalStatus.RESOLVED;
if ("refuted".equals(codeString))
return CanonicalStatus.REFUTED;
if ("differential".equals(codeString))
return CanonicalStatus.DIFFERENTIAL;
if ("partial".equals(codeString))
return CanonicalStatus.PARTIAL;
if ("busy-unavailable".equals(codeString))
return CanonicalStatus.BUSYUNAVAILABLE;
if ("free".equals(codeString))
return CanonicalStatus.FREE;
if ("on-target".equals(codeString))
return CanonicalStatus.ONTARGET;
if ("ahead-of-target".equals(codeString))
return CanonicalStatus.AHEADOFTARGET;
if ("behind-target".equals(codeString))
return CanonicalStatus.BEHINDTARGET;
if ("not-ready".equals(codeString))
return CanonicalStatus.NOTREADY;
if ("transduc-discon".equals(codeString))
return CanonicalStatus.TRANSDUCDISCON;
if ("hw-discon".equals(codeString))
return CanonicalStatus.HWDISCON;
throw new IllegalArgumentException("Unknown CanonicalStatus code '" + codeString + "'");
}
public Enumeration fromType(PrimitiveType> code) throws FHIRException {
if (code == null)
return null;
if (code.isEmpty())
return new Enumeration(this, CanonicalStatus.NULL, code);
String codeString = code.asStringValue();
if (codeString == null || "".equals(codeString))
return new Enumeration(this, CanonicalStatus.NULL, code);
if ("error".equals(codeString))
return new Enumeration(this, CanonicalStatus.ERROR, code);
if ("proposed".equals(codeString))
return new Enumeration(this, CanonicalStatus.PROPOSED, code);
if ("planned".equals(codeString))
return new Enumeration(this, CanonicalStatus.PLANNED, code);
if ("draft".equals(codeString))
return new Enumeration(this, CanonicalStatus.DRAFT, code);
if ("requested".equals(codeString))
return new Enumeration(this, CanonicalStatus.REQUESTED, code);
if ("received".equals(codeString))
return new Enumeration(this, CanonicalStatus.RECEIVED, code);
if ("declined".equals(codeString))
return new Enumeration(this, CanonicalStatus.DECLINED, code);
if ("accepted".equals(codeString))
return new Enumeration(this, CanonicalStatus.ACCEPTED, code);
if ("arrived".equals(codeString))
return new Enumeration(this, CanonicalStatus.ARRIVED, code);
if ("active".equals(codeString))
return new Enumeration(this, CanonicalStatus.ACTIVE, code);
if ("suspended".equals(codeString))
return new Enumeration(this, CanonicalStatus.SUSPENDED, code);
if ("failed".equals(codeString))
return new Enumeration(this, CanonicalStatus.FAILED, code);
if ("replaced".equals(codeString))
return new Enumeration(this, CanonicalStatus.REPLACED, code);
if ("complete".equals(codeString))
return new Enumeration(this, CanonicalStatus.COMPLETE, code);
if ("inactive".equals(codeString))
return new Enumeration(this, CanonicalStatus.INACTIVE, code);
if ("abandoned".equals(codeString))
return new Enumeration(this, CanonicalStatus.ABANDONED, code);
if ("unknown".equals(codeString))
return new Enumeration(this, CanonicalStatus.UNKNOWN, code);
if ("unconfirmed".equals(codeString))
return new Enumeration(this, CanonicalStatus.UNCONFIRMED, code);
if ("confirmed".equals(codeString))
return new Enumeration(this, CanonicalStatus.CONFIRMED, code);
if ("resolved".equals(codeString))
return new Enumeration(this, CanonicalStatus.RESOLVED, code);
if ("refuted".equals(codeString))
return new Enumeration(this, CanonicalStatus.REFUTED, code);
if ("differential".equals(codeString))
return new Enumeration(this, CanonicalStatus.DIFFERENTIAL, code);
if ("partial".equals(codeString))
return new Enumeration(this, CanonicalStatus.PARTIAL, code);
if ("busy-unavailable".equals(codeString))
return new Enumeration(this, CanonicalStatus.BUSYUNAVAILABLE, code);
if ("free".equals(codeString))
return new Enumeration(this, CanonicalStatus.FREE, code);
if ("on-target".equals(codeString))
return new Enumeration(this, CanonicalStatus.ONTARGET, code);
if ("ahead-of-target".equals(codeString))
return new Enumeration(this, CanonicalStatus.AHEADOFTARGET, code);
if ("behind-target".equals(codeString))
return new Enumeration(this, CanonicalStatus.BEHINDTARGET, code);
if ("not-ready".equals(codeString))
return new Enumeration(this, CanonicalStatus.NOTREADY, code);
if ("transduc-discon".equals(codeString))
return new Enumeration(this, CanonicalStatus.TRANSDUCDISCON, code);
if ("hw-discon".equals(codeString))
return new Enumeration(this, CanonicalStatus.HWDISCON, code);
throw new FHIRException("Unknown CanonicalStatus code '" + codeString + "'");
}
public String toCode(CanonicalStatus code) {
if (code == CanonicalStatus.NULL)
return null;
if (code == CanonicalStatus.ERROR)
return "error";
if (code == CanonicalStatus.PROPOSED)
return "proposed";
if (code == CanonicalStatus.PLANNED)
return "planned";
if (code == CanonicalStatus.DRAFT)
return "draft";
if (code == CanonicalStatus.REQUESTED)
return "requested";
if (code == CanonicalStatus.RECEIVED)
return "received";
if (code == CanonicalStatus.DECLINED)
return "declined";
if (code == CanonicalStatus.ACCEPTED)
return "accepted";
if (code == CanonicalStatus.ARRIVED)
return "arrived";
if (code == CanonicalStatus.ACTIVE)
return "active";
if (code == CanonicalStatus.SUSPENDED)
return "suspended";
if (code == CanonicalStatus.FAILED)
return "failed";
if (code == CanonicalStatus.REPLACED)
return "replaced";
if (code == CanonicalStatus.COMPLETE)
return "complete";
if (code == CanonicalStatus.INACTIVE)
return "inactive";
if (code == CanonicalStatus.ABANDONED)
return "abandoned";
if (code == CanonicalStatus.UNKNOWN)
return "unknown";
if (code == CanonicalStatus.UNCONFIRMED)
return "unconfirmed";
if (code == CanonicalStatus.CONFIRMED)
return "confirmed";
if (code == CanonicalStatus.RESOLVED)
return "resolved";
if (code == CanonicalStatus.REFUTED)
return "refuted";
if (code == CanonicalStatus.DIFFERENTIAL)
return "differential";
if (code == CanonicalStatus.PARTIAL)
return "partial";
if (code == CanonicalStatus.BUSYUNAVAILABLE)
return "busy-unavailable";
if (code == CanonicalStatus.FREE)
return "free";
if (code == CanonicalStatus.ONTARGET)
return "on-target";
if (code == CanonicalStatus.AHEADOFTARGET)
return "ahead-of-target";
if (code == CanonicalStatus.BEHINDTARGET)
return "behind-target";
if (code == CanonicalStatus.NOTREADY)
return "not-ready";
if (code == CanonicalStatus.TRANSDUCDISCON)
return "transduc-discon";
if (code == CanonicalStatus.HWDISCON)
return "hw-discon";
return "?";
}
public String toSystem(CanonicalStatus code) {
return code.getSystem();
}
}
/**
* @return {@link #identifier} (Business Identifier.)
*/
public List getIdentifier() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setIdentifier(List theIdentifier) throws FHIRException;
/**
* @return whether there is more than zero values for identifier
*/
public boolean hasIdentifier();
/**
* @return minimum allowed cardinality for identifier. Note that with patterns,
* this may be different for the underlying resource
*/
public int getIdentifierMin();
/**
* @return maximum allowed cardinality for identifier. Note that with patterns,
* this may be different for the underlying resource
*/
public int getIdentifierMax();
public Identifier addIdentifier() throws FHIRException;
public Fivews addIdentifier(Identifier t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #identifier}, creating
* it if it does not already exist
*/
public Identifier getIdentifierFirstRep() throws FHIRException;
/**
* @return {@link #version} (Identifier for this version.). This is the
* underlying object with id, value and extensions. The accessor
* "getVersion" gives direct access to the value
*/
public StringType getVersionElement() throws FHIRException;
/**
* @return whether there is more than zero values for version
*/
public boolean hasVersion();
/**
* @return minimum allowed cardinality for version. Note that with patterns,
* this may be different for the underlying resource
*/
public int getVersionMin() throws FHIRException;
/**
* @return maximum allowed cardinality for version. Note that with patterns,
* this may be different for the underlying resource
*/
public int getVersionMax() throws FHIRException;
public boolean hasVersionElement();
/**
* @param value {@link #version} (Identifier for this version.). This is the
* underlying object with id, value and extensions. The accessor
* "getVersion" gives direct access to the value
*/
public Fivews setVersionElement(StringType value) throws FHIRException;
/**
* @return Identifier for this version.
*/
public String getVersion() throws FHIRException;
/**
* @param value Identifier for this version.
*/
public Fivews setVersion(String value) throws FHIRException;
/**
* @return {@link #status} (Status Field.). This is the underlying object with
* id, value and extensions. The accessor "getStatus" gives direct
* access to the value
*/
public Enumeration getStatusElement() throws FHIRException;
/**
* @return whether there is more than zero values for status
*/
public boolean hasStatus();
/**
* @return minimum allowed cardinality for status. Note that with patterns, this
* may be different for the underlying resource
*/
public int getStatusMin() throws FHIRException;
/**
* @return maximum allowed cardinality for status. Note that with patterns, this
* may be different for the underlying resource
*/
public int getStatusMax() throws FHIRException;
public boolean hasStatusElement();
/**
* @param value {@link #status} (Status Field.). This is the underlying object
* with id, value and extensions. The accessor "getStatus" gives
* direct access to the value
*/
public Fivews setStatusElement(Enumeration value) throws FHIRException;
/**
* @return Status Field.
*/
public CanonicalStatus getStatus() throws FHIRException;
/**
* @param value Status Field.
*/
public Fivews setStatus(CanonicalStatus value) throws FHIRException;
/**
* @return {@link #class_} (Classifier Field.)
*/
public List getClass_() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setClass_(List theClass_) throws FHIRException;
/**
* @return whether there is more than zero values for class_
*/
public boolean hasClass_();
/**
* @return minimum allowed cardinality for class_. Note that with patterns, this
* may be different for the underlying resource
*/
public int getClass_Min();
/**
* @return maximum allowed cardinality for class_. Note that with patterns, this
* may be different for the underlying resource
*/
public int getClass_Max();
public CodeableConcept addClass_() throws FHIRException;
public Fivews addClass_(CodeableConcept t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #class_}, creating it
* if it does not already exist
*/
public CodeableConcept getClass_FirstRep() throws FHIRException;
/**
* @return {@link #grade} (A field that indicates the potential impact of the
* content of the resource.)
*/
public CodeableConcept getGrade() throws FHIRException;
/**
* @return whether there is more than zero values for grade
*/
public boolean hasGrade();
/**
* @return minimum allowed cardinality for grade. Note that with patterns, this
* may be different for the underlying resource
*/
public int getGradeMin();
/**
* @return maximum allowed cardinality for grade. Note that with patterns, this
* may be different for the underlying resource
*/
public int getGradeMax();
/**
* @param value {@link #grade} (A field that indicates the potential impact of
* the content of the resource.)
*/
public Fivews setGrade(CodeableConcept value) throws FHIRException;
/**
* @return {@link #what} (what this resource is about.)
*/
public DataType getWhat() throws FHIRException;
/**
* @return {@link #what} (what this resource is about.)
*/
public CodeableConcept getWhatCodeableConcept() throws FHIRException;
public boolean hasWhatCodeableConcept();
/**
* @return {@link #what} (what this resource is about.)
*/
public Reference getWhatReference() throws FHIRException;
public boolean hasWhatReference();
/**
* @return whether there is more than zero values for what
*/
public boolean hasWhat();
/**
* @return minimum allowed cardinality for what. Note that with patterns, this
* may be different for the underlying resource
*/
public int getWhatMin();
/**
* @return maximum allowed cardinality for what. Note that with patterns, this
* may be different for the underlying resource
*/
public int getWhatMax();
/**
* @param value {@link #what} (what this resource is about.)
*/
public Fivews setWhat(DataType value) throws FHIRException;
/**
* @return {@link #subject} (Who this resource is about.)
*/
public List getSubject() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setSubject(List theSubject) throws FHIRException;
/**
* @return whether there is more than zero values for subject
*/
public boolean hasSubject();
/**
* @return minimum allowed cardinality for subject. Note that with patterns,
* this may be different for the underlying resource
*/
public int getSubjectMin();
/**
* @return maximum allowed cardinality for subject. Note that with patterns,
* this may be different for the underlying resource
*/
public int getSubjectMax();
public Reference addSubject() throws FHIRException;
public Fivews addSubject(Reference t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #subject}, creating it
* if it does not already exist
*/
public Reference getSubjectFirstRep() throws FHIRException;
/**
* @return {@link #context} (a resource that gives context for the work
* described in this resource (usually Encounter or EpisodeOfCare).)
*/
public Reference getContext() throws FHIRException;
/**
* @return whether there is more than zero values for context
*/
public boolean hasContext();
/**
* @return minimum allowed cardinality for context. Note that with patterns,
* this may be different for the underlying resource
*/
public int getContextMin();
/**
* @return maximum allowed cardinality for context. Note that with patterns,
* this may be different for the underlying resource
*/
public int getContextMax();
/**
* @param value {@link #context} (a resource that gives context for the work
* described in this resource (usually Encounter or
* EpisodeOfCare).)
*/
public Fivews setContext(Reference value) throws FHIRException;
/**
* @return {@link #init} (when the work described in this resource was started
* (or will be).). This is the underlying object with id, value and
* extensions. The accessor "getInit" gives direct access to the value
*/
public DateTimeType getInitElement() throws FHIRException;
/**
* @return whether there is more than zero values for init
*/
public boolean hasInit();
/**
* @return minimum allowed cardinality for init. Note that with patterns, this
* may be different for the underlying resource
*/
public int getInitMin() throws FHIRException;
/**
* @return maximum allowed cardinality for init. Note that with patterns, this
* may be different for the underlying resource
*/
public int getInitMax() throws FHIRException;
public boolean hasInitElement();
/**
* @param value {@link #init} (when the work described in this resource was
* started (or will be).). This is the underlying object with id,
* value and extensions. The accessor "getInit" gives direct access
* to the value
*/
public Fivews setInitElement(DateTimeType value) throws FHIRException;
/**
* @return when the work described in this resource was started (or will be).
*/
public Date getInit() throws FHIRException;
/**
* @param value when the work described in this resource was started (or will
* be).
*/
public Fivews setInit(Date value) throws FHIRException;
/**
* @return {@link #planned} (when this resource is planned to occur.)
*/
public List getPlanned() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setPlanned(List thePlanned) throws FHIRException;
/**
* @return whether there is more than zero values for planned
*/
public boolean hasPlanned();
/**
* @return minimum allowed cardinality for planned. Note that with patterns,
* this may be different for the underlying resource
*/
public int getPlannedMin();
/**
* @return maximum allowed cardinality for planned. Note that with patterns,
* this may be different for the underlying resource
*/
public int getPlannedMax();
public Timing addPlanned() throws FHIRException;
public Fivews addPlanned(Timing t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #planned}, creating it
* if it does not already exist
*/
public Timing getPlannedFirstRep() throws FHIRException;
/**
* @return {@link #done} (when the work described in this resource was completed
* (or will be).)
*/
public DataType getDone() throws FHIRException;
/**
* @return {@link #done} (when the work described in this resource was completed
* (or will be).)
*/
public DateTimeType getDoneDateTimeType() throws FHIRException;
public boolean hasDoneDateTimeType();
/**
* @return {@link #done} (when the work described in this resource was completed
* (or will be).)
*/
public Period getDonePeriod() throws FHIRException;
public boolean hasDonePeriod();
/**
* @return whether there is more than zero values for done
*/
public boolean hasDone();
/**
* @return minimum allowed cardinality for done. Note that with patterns, this
* may be different for the underlying resource
*/
public int getDoneMin();
/**
* @return maximum allowed cardinality for done. Note that with patterns, this
* may be different for the underlying resource
*/
public int getDoneMax();
/**
* @param value {@link #done} (when the work described in this resource was
* completed (or will be).)
*/
public Fivews setDone(DataType value) throws FHIRException;
/**
* @return {@link #recorded} (when this resource itself was created.). This is
* the underlying object with id, value and extensions. The accessor
* "getRecorded" gives direct access to the value
*/
public InstantType getRecordedElement() throws FHIRException;
/**
* @return whether there is more than zero values for recorded
*/
public boolean hasRecorded();
/**
* @return minimum allowed cardinality for recorded. Note that with patterns,
* this may be different for the underlying resource
*/
public int getRecordedMin() throws FHIRException;
/**
* @return maximum allowed cardinality for recorded. Note that with patterns,
* this may be different for the underlying resource
*/
public int getRecordedMax() throws FHIRException;
public boolean hasRecordedElement();
/**
* @param value {@link #recorded} (when this resource itself was created.). This
* is the underlying object with id, value and extensions. The
* accessor "getRecorded" gives direct access to the value
*/
public Fivews setRecordedElement(InstantType value) throws FHIRException;
/**
* @return when this resource itself was created.
*/
public Date getRecorded() throws FHIRException;
/**
* @param value when this resource itself was created.
*/
public Fivews setRecorded(Date value) throws FHIRException;
/**
* @return {@link #author} (who authored the content of the resource.)
*/
public List getAuthor() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setAuthor(List theAuthor) throws FHIRException;
/**
* @return whether there is more than zero values for author
*/
public boolean hasAuthor();
/**
* @return minimum allowed cardinality for author. Note that with patterns, this
* may be different for the underlying resource
*/
public int getAuthorMin();
/**
* @return maximum allowed cardinality for author. Note that with patterns, this
* may be different for the underlying resource
*/
public int getAuthorMax();
public Reference addAuthor() throws FHIRException;
public Fivews addAuthor(Reference t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #author}, creating it
* if it does not already exist
*/
public Reference getAuthorFirstRep() throws FHIRException;
/**
* @return {@link #source} (Who provided the information in this resource.)
*/
public List getSource() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setSource(List theSource) throws FHIRException;
/**
* @return whether there is more than zero values for source
*/
public boolean hasSource();
/**
* @return minimum allowed cardinality for source. Note that with patterns, this
* may be different for the underlying resource
*/
public int getSourceMin();
/**
* @return maximum allowed cardinality for source. Note that with patterns, this
* may be different for the underlying resource
*/
public int getSourceMax();
public Reference addSource() throws FHIRException;
public Fivews addSource(Reference t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #source}, creating it
* if it does not already exist
*/
public Reference getSourceFirstRep() throws FHIRException;
/**
* @return {@link #actor} (who did the work described the resource (or will
* do).)
*/
public List getActor() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setActor(List theActor) throws FHIRException;
/**
* @return whether there is more than zero values for actor
*/
public boolean hasActor();
/**
* @return minimum allowed cardinality for actor. Note that with patterns, this
* may be different for the underlying resource
*/
public int getActorMin();
/**
* @return maximum allowed cardinality for actor. Note that with patterns, this
* may be different for the underlying resource
*/
public int getActorMax();
public Reference addActor() throws FHIRException;
public Fivews addActor(Reference t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #actor}, creating it
* if it does not already exist
*/
public Reference getActorFirstRep() throws FHIRException;
/**
* @return {@link #cause} (who prompted the work described in the resource.)
*/
public List getCause() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setCause(List theCause) throws FHIRException;
/**
* @return whether there is more than zero values for cause
*/
public boolean hasCause();
/**
* @return minimum allowed cardinality for cause. Note that with patterns, this
* may be different for the underlying resource
*/
public int getCauseMin();
/**
* @return maximum allowed cardinality for cause. Note that with patterns, this
* may be different for the underlying resource
*/
public int getCauseMax();
public Reference addCause() throws FHIRException;
public Fivews addCause(Reference t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #cause}, creating it
* if it does not already exist
*/
public Reference getCauseFirstRep() throws FHIRException;
/**
* @return {@link #witness} (who attests to the content of the resource
* (individual or org).)
*/
public List getWitness() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setWitness(List theWitness) throws FHIRException;
/**
* @return whether there is more than zero values for witness
*/
public boolean hasWitness();
/**
* @return minimum allowed cardinality for witness. Note that with patterns,
* this may be different for the underlying resource
*/
public int getWitnessMin();
/**
* @return maximum allowed cardinality for witness. Note that with patterns,
* this may be different for the underlying resource
*/
public int getWitnessMax();
public Reference addWitness() throws FHIRException;
public Fivews addWitness(Reference t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #witness}, creating it
* if it does not already exist
*/
public Reference getWitnessFirstRep() throws FHIRException;
/**
* @return {@link #who} (An actor involved in the work described by this
* resource.)
*/
public List getWho() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setWho(List theWho) throws FHIRException;
/**
* @return whether there is more than zero values for who
*/
public boolean hasWho();
/**
* @return minimum allowed cardinality for who. Note that with patterns, this
* may be different for the underlying resource
*/
public int getWhoMin();
/**
* @return maximum allowed cardinality for who. Note that with patterns, this
* may be different for the underlying resource
*/
public int getWhoMax();
public Reference addWho() throws FHIRException;
public Fivews addWho(Reference t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #who}, creating it if
* it does not already exist
*/
public Reference getWhoFirstRep() throws FHIRException;
/**
* @return {@link #where} (The location of the work described.)
*/
public List getWhere() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setWhere(List theWhere) throws FHIRException;
/**
* @return whether there is more than zero values for where
*/
public boolean hasWhere();
/**
* @return minimum allowed cardinality for where. Note that with patterns, this
* may be different for the underlying resource
*/
public int getWhereMin();
/**
* @return maximum allowed cardinality for where. Note that with patterns, this
* may be different for the underlying resource
*/
public int getWhereMax();
public DataType addWhere() throws FHIRException;
public Fivews addWhere(DataType t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #where}, creating it
* if it does not already exist
*/
public DataType getWhereFirstRep() throws FHIRException;
/**
* @return {@link #why} (Why this work was done.)
*/
public List getWhy() throws FHIRException;
/**
* @return Returns a reference to this
for easy method chaining
*/
public Fivews setWhy(List theWhy) throws FHIRException;
/**
* @return whether there is more than zero values for why
*/
public boolean hasWhy();
/**
* @return minimum allowed cardinality for why. Note that with patterns, this
* may be different for the underlying resource
*/
public int getWhyMin();
/**
* @return maximum allowed cardinality for why. Note that with patterns, this
* may be different for the underlying resource
*/
public int getWhyMax();
public DataType addWhy() throws FHIRException;
public Fivews addWhy(DataType t) throws FHIRException;
/**
* @return The first repetition of repeating field {@link #why}, creating it if
* it does not already exist
*/
public DataType getWhyFirstRep() throws FHIRException;
public String fhirType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy