public class ConsentTemplate
extends org.hl7.fhir.r4.model.Type
implements org.hl7.fhir.instance.model.api.ICompositeType
mosaic-greifswald.de
Modifier and Type | Class and Description |
---|---|
static class |
ConsentTemplate.TemplateType
internal enumeration to differentiate types of consent templates
internal use only
|
Constructor and Description |
---|
ConsentTemplate()
create new instance of ConsentTemplate, using default version "1.0"
|
ConsentTemplate(java.lang.String domain,
java.lang.String name,
java.lang.String version)
create new instance of ConsentTemplate
|
ConsentTemplate(java.lang.String domain,
java.lang.String name,
java.lang.String version,
ConsentTemplate.TemplateType type)
create new instance of ConsentTemplate
|
ConsentTemplate(java.lang.String domain,
java.lang.String name,
java.lang.String version,
ConsentTemplate.TemplateType type,
java.lang.String label,
java.lang.String versionLabel)
create new instance of ConsentTemplate
|
ConsentTemplate(java.lang.String domain,
java.lang.String name,
java.lang.String version,
java.lang.String label,
java.lang.String versionLabel)
create new instance of ConsentTemplate
|
Modifier and Type | Method and Description |
---|---|
ConsentTemplate |
addAssignedModule(AssignedConsentModule module)
add new AssignedConsentModule to list of AssignedConsentModules and invoke update of internal
fhir reference list
|
ConsentTemplate |
addFreetext(ConsentTemplateFreeText freeItem)
add new ConsentTemplateFreeText to list of ConsentTemplateFreeTexts and invoke update of
internal fhir reference list
|
boolean |
equals(java.lang.Object obj) |
java.util.List<org.hl7.fhir.r4.model.Type> |
getAssignedModules()
get current list of assigned Modules as ArrayList
|
java.lang.String |
getComment()
get comment to describe purpose of consent template
|
org.hl7.fhir.r4.model.Person |
getContact()
get responsible contact for this consent template
|
java.lang.String |
getDomainName()
get Name of assigned consent domain
|
java.lang.String |
getExpirationProperties()
get expirationProperties of consent template
|
java.lang.String |
getExternProperties()
get externProperties of consent template
|
java.lang.Boolean |
getFinalized()
get consent template finalized status
|
java.lang.String |
getFooter()
get footer of consent template
|
java.util.List<org.hl7.fhir.r4.model.Type> |
getFreetextDefs()
get current list of assigned FreeTextsDefinitions as ArrayList
|
java.lang.String |
getHeader()
get header of consent template
|
java.lang.String |
getLabel()
get Label of consent template
|
java.lang.String |
getName()
get Name of consent template
|
java.lang.String |
getTitle()
get title of consent template to be used as label etc.
|
ConsentTemplate.TemplateType |
getType()
get type of consent template
|
java.lang.String |
getVersion()
get version of consent template
|
java.lang.String |
getVersionLabel()
get version label of consent template
|
int |
hashCode() |
boolean |
isEmpty() |
ConsentTemplate |
removeAssignedModule(AssignedConsentModule module)
remove AssignedConsentModule from list of AssignedConsentModules and invoke update of
internal fhir reference list
|
ConsentTemplate |
removeFreetext(ConsentTemplateFreeText freeItem)
remove ConsentTemplateFreeText from list of ConsentTemplateFreeTexts and invoke update of
internal fhir reference list
|
ConsentTemplate |
setAssignedModules(java.util.List<org.hl7.fhir.r4.model.Type> listOfModules)
set list of AssignedConsentModule and update respective fhir list of references
|
ConsentTemplate |
setComment(java.lang.String templateComment)
set comment to describe purpose of consent template
|
ConsentTemplate |
setContact(org.hl7.fhir.r4.model.Person templateContact)
set responsible contact for this consent template
|
ConsentTemplate |
setContact(java.lang.String familyName,
java.lang.String givenName,
java.lang.String telephone,
java.lang.String eMail,
org.hl7.fhir.r4.model.Address address)
set responsible contact for this consent template
|
ConsentTemplate |
setDomainName(java.lang.String templateDomainName)
set name of assigned consent domain
|
ConsentTemplate |
setExpirationProperties(java.lang.String expirationProperties)
set expirationProperties of consent template e.g. validity_period=p1y
|
ConsentTemplate |
setExternProperties(java.lang.String externProperties)
set externProperties of consent template with 0-n properties separated by semicolon e.g.
|
ConsentTemplate |
setFinalized(java.lang.Boolean finalstate)
set consent template finalized status
|
ConsentTemplate |
setFooter(java.lang.String templateFooter)
set footer of consent template to be used as label etc.
|
ConsentTemplate |
setFreetextDefs(java.util.List<org.hl7.fhir.r4.model.Type> listOfFrees)
set list of ConsentTemplateFreeText and update respective fhir list of references
|
ConsentTemplate |
setHeader(java.lang.String templateHeader)
set header of consent template to be used as label etc.
|
ConsentTemplate |
setLabel(java.lang.String templateLabel)
set Label of consent template
|
ConsentTemplate |
setName(java.lang.String templateName)
set Name of consent template
|
ConsentTemplate |
setTitle(java.lang.String templateTitle)
set title of consent template to be used as label etc.
|
ConsentTemplate |
setType(ConsentTemplate.TemplateType templateType)
set type of consent template
|
ConsentTemplate |
setType(java.lang.String templateType)
set type of consent template
|
ConsentTemplate |
setVersion(java.lang.String templateVersion)
set version of consent template
|
ConsentTemplate |
setVersionLabel(java.lang.String templateVersionLabel)
set version label of consent template
|
java.lang.String |
toKeyString()
get template Key as String separated with semicolon e.g.
|
java.lang.String |
toString() |
addChild, addExtension, addExtension, addExtension, copyValues, equalsDeep, equalsShallow, fhirType, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, getProperty, getTypesForProperty, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, makeProperty, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement, setProperty, setProperty
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
public ConsentTemplate(java.lang.String domain, java.lang.String name, java.lang.String version)
domain
- name
- version
- public ConsentTemplate(java.lang.String domain, java.lang.String name, java.lang.String version, java.lang.String label, java.lang.String versionLabel)
domain
- name
- label
- version
- versionLabel
- public ConsentTemplate(java.lang.String domain, java.lang.String name, java.lang.String version, ConsentTemplate.TemplateType type)
domain
- name
- version
- type
- public ConsentTemplate(java.lang.String domain, java.lang.String name, java.lang.String version, ConsentTemplate.TemplateType type, java.lang.String label, java.lang.String versionLabel)
domain
- name
- version
- type
- label
- versionLabel
- public ConsentTemplate()
public java.lang.String getName()
public ConsentTemplate setName(java.lang.String templateName)
templateName
- Name of consent templatepublic java.lang.Boolean getFinalized()
public ConsentTemplate setFinalized(java.lang.Boolean finalstate)
finalstate
- finalized status
domain finalized statuspublic java.lang.String getLabel()
public ConsentTemplate setLabel(java.lang.String templateLabel)
templateLabel
- Label of consent templatepublic java.lang.String getVersionLabel()
public ConsentTemplate setVersionLabel(java.lang.String templateVersionLabel)
templateVersionLabel
- version Label of consent templatepublic java.lang.String getDomainName()
public ConsentTemplate setDomainName(java.lang.String templateDomainName)
templateDomainName
- name of assigned consent domainpublic java.lang.String getVersion()
public ConsentTemplate setVersion(java.lang.String templateVersion)
templateVersion
- version of consent templatepublic ConsentTemplate.TemplateType getType()
public ConsentTemplate setType(ConsentTemplate.TemplateType templateType)
templateType
- type of consent templatepublic ConsentTemplate setType(java.lang.String templateType)
templateType
- string type of consent templatepublic java.lang.String getTitle()
public ConsentTemplate setTitle(java.lang.String templateTitle)
templateTitle
- title of consent template to be used as label etc.public java.lang.String getComment()
public ConsentTemplate setComment(java.lang.String templateComment)
templateComment
- comment to describe purpose of consent templatepublic java.lang.String getHeader()
public ConsentTemplate setHeader(java.lang.String templateHeader)
templateHeader
- header of consent templatepublic java.lang.String getFooter()
public ConsentTemplate setFooter(java.lang.String templateFooter)
templateFooter
- footer of consent templatepublic java.lang.String getExpirationProperties()
public ConsentTemplate setExpirationProperties(java.lang.String expirationProperties)
expirationProperties
- expirationProperties of consent templatepublic java.lang.String getExternProperties()
public ConsentTemplate setExternProperties(java.lang.String externProperties)
externProperties
- externProperties of consent templatepublic org.hl7.fhir.r4.model.Person getContact()
public ConsentTemplate setContact(org.hl7.fhir.r4.model.Person templateContact)
templateContact
- responsible contact for this consent templatepublic ConsentTemplate setContact(java.lang.String familyName, java.lang.String givenName, java.lang.String telephone, java.lang.String eMail, org.hl7.fhir.r4.model.Address address)
familyName
- givenName
- telephone
- eMail
- address
- Address in FHIR formatpublic java.util.List<org.hl7.fhir.r4.model.Type> getFreetextDefs()
public ConsentTemplate setFreetextDefs(java.util.List<org.hl7.fhir.r4.model.Type> listOfFrees)
listOfFrees
- list of ConsentTemplateFreeText for this consent templatepublic ConsentTemplate addFreetext(ConsentTemplateFreeText freeItem)
freeItem
- ConsentTemplateFreeText item to be addedpublic ConsentTemplate removeFreetext(ConsentTemplateFreeText freeItem)
freeItem
- ConsentTemplateFreeText item to be removedpublic java.util.List<org.hl7.fhir.r4.model.Type> getAssignedModules()
public ConsentTemplate setAssignedModules(java.util.List<org.hl7.fhir.r4.model.Type> listOfModules)
listOfModules
- list of AssignedConsentModule for this consent templatepublic ConsentTemplate addAssignedModule(AssignedConsentModule module)
module
- AssignedConsentModule item to be addedpublic ConsentTemplate removeAssignedModule(AssignedConsentModule module)
module
- AssignedConsentModule item to be removedpublic java.lang.String toKeyString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface org.hl7.fhir.instance.model.api.IBase
isEmpty
in class org.hl7.fhir.r4.model.Element
public java.lang.String toString()
toString
in class java.lang.Object