Package org.hl7.fhir.dstu2016may.model
Class Protocol
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.model.BaseResource
-
- org.hl7.fhir.dstu2016may.model.Resource
-
- org.hl7.fhir.dstu2016may.model.DomainResource
-
- org.hl7.fhir.dstu2016may.model.Protocol
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class Protocol extends DomainResource
A definition of behaviors to be taken in particular circumstances, often including conditions, options and other decision points.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtocol.ActivityDefinitionCategorystatic classProtocol.ActivityDefinitionCategoryEnumFactorystatic classProtocol.ProtocolStatusstatic classProtocol.ProtocolStatusEnumFactorystatic classProtocol.ProtocolStepActivityComponentstatic classProtocol.ProtocolStepActivityComponentComponentstatic classProtocol.ProtocolStepActivityDetailComponentstatic classProtocol.ProtocolStepComponentstatic classProtocol.ProtocolStepNextComponentstatic classProtocol.ProtocolStepPreconditionComponentstatic classProtocol.ProtocolStepPreconditionConditionComponentstatic classProtocol.ProtocolTypestatic classProtocol.ProtocolTypeEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected ReferenceauthorWho wrote protocol?protected OrganizationauthorTargetThe actual object that is the target of the reference (Who wrote protocol?)protected ReferencegroupTo whom does Protocol apply?protected GroupgroupTargetThe actual object that is the target of the reference (To whom does Protocol apply?)protected List<Identifier>identifierA unique identifier for the protocol instance.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.protected StringTypepurposeWhen is protocol to be used?static StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_SUBJECTSearch parameter: subjectprotected Enumeration<Protocol.ProtocolStatus>statusThe status of the protocol.protected List<Protocol.ProtocolStepComponent>stepWhat's done as part of protocol.protected ReferencesubjectWhat does protocol deal with?static ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subjectprotected ResourcesubjectTargetThe actual object that is the target of the reference (What does protocol deal with?)protected StringTypetitleName of protocol.protected Enumeration<Protocol.ProtocolType>typeA code that classifies the general type of context to which these behavior definitions apply.-
Fields inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2016may.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Protocol()ConstructorProtocol(Enumeration<Protocol.ProtocolStatus> status, Enumeration<Protocol.ProtocolType> type, StringType purpose)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> identifier
A unique identifier for the protocol instance.
-
title
protected StringType title
Name of protocol.
-
status
protected Enumeration<Protocol.ProtocolStatus> status
The status of the protocol.
-
type
protected Enumeration<Protocol.ProtocolType> type
A code that classifies the general type of context to which these behavior definitions apply. This is used for searching, sorting and display purposes.
-
subjectTarget
protected Resource subjectTarget
The actual object that is the target of the reference (What does protocol deal with?)
-
groupTarget
protected Group groupTarget
The actual object that is the target of the reference (To whom does Protocol apply?)
-
purpose
protected StringType purpose
When is protocol to be used?
-
authorTarget
protected Organization authorTarget
The actual object that is the target of the reference (Who wrote protocol?)
-
step
protected List<Protocol.ProtocolStepComponent> step
What's done as part of protocol.
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter: subjectDescription: Protocols with specified subject
Type: reference
Path: Protocol.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription: Protocols with specified subject
Type: reference
Path: Protocol.subject
-
INCLUDE_SUBJECT
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Protocol:subject".
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: The unique id for a particular protocol
Type: token
Path: Protocol.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: The unique id for a particular protocol
Type: token
Path: Protocol.identifier
-
-
Constructor Detail
-
Protocol
public Protocol()
Constructor
-
Protocol
public Protocol(Enumeration<Protocol.ProtocolStatus> status, Enumeration<Protocol.ProtocolType> type, StringType purpose)
Constructor
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(A unique identifier for the protocol instance.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(A unique identifier for the protocol instance.)
-
addIdentifier
public Protocol addIdentifier(Identifier t)
-
getTitleElement
public StringType getTitleElement()
- Returns:
title(Name of protocol.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
-
hasTitleElement
public boolean hasTitleElement()
-
hasTitle
public boolean hasTitle()
-
setTitleElement
public Protocol setTitleElement(StringType value)
- Parameters:
value-title(Name of protocol.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
-
getStatusElement
public Enumeration<Protocol.ProtocolStatus> getStatusElement()
- Returns:
status(The status of the protocol.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public Protocol setStatusElement(Enumeration<Protocol.ProtocolStatus> value)
- Parameters:
value-status(The status of the protocol.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public Protocol.ProtocolStatus getStatus()
- Returns:
- The status of the protocol.
-
setStatus
public Protocol setStatus(Protocol.ProtocolStatus value)
- Parameters:
value- The status of the protocol.
-
getTypeElement
public Enumeration<Protocol.ProtocolType> getTypeElement()
- Returns:
type(A code that classifies the general type of context to which these behavior definitions apply. This is used for searching, sorting and display purposes.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
public boolean hasTypeElement()
-
hasType
public boolean hasType()
-
setTypeElement
public Protocol setTypeElement(Enumeration<Protocol.ProtocolType> value)
- Parameters:
value-type(A code that classifies the general type of context to which these behavior definitions apply. This is used for searching, sorting and display purposes.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
public Protocol.ProtocolType getType()
- Returns:
- A code that classifies the general type of context to which these behavior definitions apply. This is used for searching, sorting and display purposes.
-
setType
public Protocol setType(Protocol.ProtocolType value)
- Parameters:
value- A code that classifies the general type of context to which these behavior definitions apply. This is used for searching, sorting and display purposes.
-
getSubject
public Reference getSubject()
- Returns:
subject(What does protocol deal with?)
-
hasSubject
public boolean hasSubject()
-
setSubject
public Protocol setSubject(Reference value)
- Parameters:
value-subject(What does protocol deal with?)
-
getSubjectTarget
public Resource getSubjectTarget()
- Returns:
subjectThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (What does protocol deal with?)
-
setSubjectTarget
public Protocol setSubjectTarget(Resource value)
- Parameters:
value-subjectThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (What does protocol deal with?)
-
hasGroup
public boolean hasGroup()
-
setGroup
public Protocol setGroup(Reference value)
- Parameters:
value-group(To whom does Protocol apply?)
-
getGroupTarget
public Group getGroupTarget()
- Returns:
groupThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (To whom does Protocol apply?)
-
setGroupTarget
public Protocol setGroupTarget(Group value)
- Parameters:
value-groupThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (To whom does Protocol apply?)
-
getPurposeElement
public StringType getPurposeElement()
- Returns:
purpose(When is protocol to be used?). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
-
hasPurposeElement
public boolean hasPurposeElement()
-
hasPurpose
public boolean hasPurpose()
-
setPurposeElement
public Protocol setPurposeElement(StringType value)
- Parameters:
value-purpose(When is protocol to be used?). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
-
getPurpose
public String getPurpose()
- Returns:
- When is protocol to be used?
-
setPurpose
public Protocol setPurpose(String value)
- Parameters:
value- When is protocol to be used?
-
hasAuthor
public boolean hasAuthor()
-
setAuthor
public Protocol setAuthor(Reference value)
- Parameters:
value-author(Who wrote protocol?)
-
getAuthorTarget
public Organization getAuthorTarget()
- Returns:
authorThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Who wrote protocol?)
-
setAuthorTarget
public Protocol setAuthorTarget(Organization value)
- Parameters:
value-authorThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Who wrote protocol?)
-
getStep
public List<Protocol.ProtocolStepComponent> getStep()
- Returns:
step(What's done as part of protocol.)
-
hasStep
public boolean hasStep()
-
addStep
public Protocol.ProtocolStepComponent addStep()
- Returns:
step(What's done as part of protocol.)
-
addStep
public Protocol addStep(Protocol.ProtocolStepComponent t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classDomainResource- Returns:
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Protocol copy()
- Specified by:
copyin classDomainResource
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-