Class Protocol
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Protocol
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Protocol extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for Protocol complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Protocol"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="title" type="{http://hl7.org/fhir}string" minOccurs="0"/> <element name="status" type="{http://hl7.org/fhir}ProtocolStatus"/> <element name="type" type="{http://hl7.org/fhir}ProtocolType"/> <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="group" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="purpose" type="{http://hl7.org/fhir}string"/> <element name="author" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="step" type="{http://hl7.org/fhir}Protocol.Step" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Referenceauthorprotected Referencegroupprotected java.util.List<Identifier>identifierprotected Stringpurposeprotected ProtocolStatusstatusprotected java.util.List<ProtocolStep>stepprotected Referencesubjectprotected Stringtitleprotected ProtocolTypetype-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Protocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)ReferencegetAuthor()Gets the value of the author property.ReferencegetGroup()Gets the value of the group property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.StringgetPurpose()Gets the value of the purpose property.ProtocolStatusgetStatus()Gets the value of the status property.java.util.List<ProtocolStep>getStep()Gets the value of the step property.ReferencegetSubject()Gets the value of the subject property.StringgetTitle()Gets the value of the title property.ProtocolTypegetType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetAuthor(Reference value)Sets the value of the author property.voidsetGroup(Reference value)Sets the value of the group property.voidsetPurpose(String value)Sets the value of the purpose property.voidsetStatus(ProtocolStatus value)Sets the value of the status property.voidsetSubject(Reference value)Sets the value of the subject property.voidsetTitle(String value)Sets the value of the title property.voidsetType(ProtocolType value)Sets the value of the type property.java.lang.StringtoString()ProtocolwithAuthor(Reference value)ProtocolwithContained(java.util.Collection<ResourceContainer> values)ProtocolwithContained(ResourceContainer... values)ProtocolwithExtension(java.util.Collection<Extension> values)ProtocolwithExtension(Extension... values)ProtocolwithGroup(Reference value)ProtocolwithId(Id value)ProtocolwithIdentifier(java.util.Collection<Identifier> values)ProtocolwithIdentifier(Identifier... values)ProtocolwithImplicitRules(Uri value)ProtocolwithLanguage(Code value)ProtocolwithMeta(Meta value)ProtocolwithModifierExtension(java.util.Collection<Extension> values)ProtocolwithModifierExtension(Extension... values)ProtocolwithPurpose(String value)ProtocolwithStatus(ProtocolStatus value)ProtocolwithStep(java.util.Collection<ProtocolStep> values)ProtocolwithStep(ProtocolStep... values)ProtocolwithSubject(Reference value)ProtocolwithText(Narrative value)ProtocolwithTitle(String value)ProtocolwithType(ProtocolType value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
title
protected String title
-
status
protected ProtocolStatus status
-
type
protected ProtocolType type
-
subject
protected Reference subject
-
group
protected Reference group
-
purpose
protected String purpose
-
author
protected Reference author
-
step
protected java.util.List<ProtocolStep> step
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getTitle
public String getTitle()
Gets the value of the title property.- Returns:
- possible object is
String
-
setTitle
public void setTitle(String value)
Sets the value of the title property.- Parameters:
value- allowed object isString
-
getStatus
public ProtocolStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
ProtocolStatus
-
setStatus
public void setStatus(ProtocolStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isProtocolStatus
-
getType
public ProtocolType getType()
Gets the value of the type property.- Returns:
- possible object is
ProtocolType
-
setType
public void setType(ProtocolType value)
Sets the value of the type property.- Parameters:
value- allowed object isProtocolType
-
getSubject
public Reference getSubject()
Gets the value of the subject property.- Returns:
- possible object is
Reference
-
setSubject
public void setSubject(Reference value)
Sets the value of the subject property.- Parameters:
value- allowed object isReference
-
getGroup
public Reference getGroup()
Gets the value of the group property.- Returns:
- possible object is
Reference
-
setGroup
public void setGroup(Reference value)
Sets the value of the group property.- Parameters:
value- allowed object isReference
-
getPurpose
public String getPurpose()
Gets the value of the purpose property.- Returns:
- possible object is
String
-
setPurpose
public void setPurpose(String value)
Sets the value of the purpose property.- Parameters:
value- allowed object isString
-
getAuthor
public Reference getAuthor()
Gets the value of the author property.- Returns:
- possible object is
Reference
-
setAuthor
public void setAuthor(Reference value)
Sets the value of the author property.- Parameters:
value- allowed object isReference
-
getStep
public java.util.List<ProtocolStep> getStep()
Gets the value of the step property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the step property.For example, to add a new item, do as follows:
getStep().add(newItem);Objects of the following type(s) are allowed in the list
ProtocolStep
-
withIdentifier
public Protocol withIdentifier(Identifier... values)
-
withIdentifier
public Protocol withIdentifier(java.util.Collection<Identifier> values)
-
withStatus
public Protocol withStatus(ProtocolStatus value)
-
withType
public Protocol withType(ProtocolType value)
-
withStep
public Protocol withStep(ProtocolStep... values)
-
withStep
public Protocol withStep(java.util.Collection<ProtocolStep> values)
-
withText
public Protocol withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Protocol withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Protocol withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Protocol withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Protocol withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Protocol withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Protocol withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Protocol withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Protocol withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Protocol withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Protocol withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-