Class ConsentModule

java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.Element
org.hl7.fhir.r4.model.Type
org.emau.icmvc.magic.fhir.datatypes.ConsentModule
All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.ICompositeType

public class ConsentModule extends org.hl7.fhir.r4.model.Type implements org.hl7.fhir.instance.model.api.ICompositeType
FHIR Datatype to hold gICS-Module specific information
Author:
bialkem mosaic-greifswald.de
See Also:
  • Field Summary

    Fields inherited from class org.hl7.fhir.r4.model.Element

    extension, id
  • Constructor Summary

    Constructors
    Constructor
    Description
    create new instance of ConsentModule, using default version "1.0"
  • Method Summary

    Modifier and Type
    Method
    Description
    add new AssignedConsentPolicy to list of AssignedConsentPolicy and invoke update of internal fhir reference list
    boolean
     
    List<org.hl7.fhir.r4.model.Type>
    get current list of assigned Modules as ArrayList
    Return the creation date
     
    get Name of assigned consent domain
    get externProperties of consent module
    get comment to describe purpose of consent module
    get consent module finalized status
    get label of consent module
    get Name of consent module
    get shorttext of consent module
    get text of consent module to be used as label etc.
    get title of consent module to be used as label etc.
    get version of consent module
    int
     
    boolean
     
    setAssignedPolicies(List<org.hl7.fhir.r4.model.Type> listOfPolicies)
    set list of AssignedConsentPolicies and update respective fhir list of references
     
    setCreationDate(Date creationDate)
    Set the creation date
    setDomainName(String domainName)
    set name of assigned consent domain
    setExternProperties(String externProperties)
    set externProperties of consent module with 0-n properties separated by semicolon
    set comment to describe purpose of consent module
    set consent module finalized status
    set label of consent module
    set Name of consent module
    set shorttext of consent module to be used as displayed content
    set text of consent module to be used as displayed content
    set title of consent module to be used as label etc.
    set version of consent module
    get module Key as String separated with semicolon e.g.
     
    protected org.hl7.fhir.r4.model.Type
     

    Methods inherited from class org.hl7.fhir.r4.model.Type

    copy

    Methods inherited from class org.hl7.fhir.r4.model.Element

    addChild, addExtension, addExtension, addExtension, copyValues, equalsDeep, equalsShallow, fhirType, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, getProperty, getTypesForProperty, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, listChildren, makeProperty, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement, setProperty, setProperty

    Methods inherited from class org.hl7.fhir.r4.model.Base

    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, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBase

    fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement

    getUserData, setUserData
  • Constructor Details

    • ConsentModule

      public ConsentModule()
      create new instance of ConsentModule, using default version "1.0"
  • Method Details

    • getModuleVersion

      public String getModuleVersion()
      get version of consent module
      Returns:
      version of consent module
    • setModuleVersion

      public ConsentModule setModuleVersion(String version)
      set version of consent module
      Parameters:
      version - version of consent module
      Returns:
      instance of ConsentModule
    • getModuleFinalized

      public Boolean getModuleFinalized()
      get consent module finalized status
      Returns:
      module finalized status
    • setModuleFinalized

      public ConsentModule setModuleFinalized(Boolean finalstate)
      set consent module finalized status
      Parameters:
      finalstate - finalized status module finalized status
      Returns:
      instance of consent module
    • getAssignedPolicies

      public List<org.hl7.fhir.r4.model.Type> getAssignedPolicies()
      get current list of assigned Modules as ArrayList
      Returns:
      list of assigned modules as ArrayList
    • getDeprecatedPolicyKeys

      public List<String> getDeprecatedPolicyKeys()
      Returns:
      list of deprecatedPolicy Keys
    • setAssignedPolicies

      public ConsentModule setAssignedPolicies(List<org.hl7.fhir.r4.model.Type> listOfPolicies)
      set list of AssignedConsentPolicies and update respective fhir list of references
      Parameters:
      listOfPolicies - list of AssignedConsentPolicies for this consent module
      Returns:
      current instance of ConsentModule
    • setAssignedPoliciesFromKeyString

      public ConsentModule setAssignedPoliciesFromKeyString(List<String> policyKeyStrings)
    • addAssignedPolicy

      public ConsentModule addAssignedPolicy(AssignedConsentPolicy item)
      add new AssignedConsentPolicy to list of AssignedConsentPolicy and invoke update of internal fhir reference list
      Parameters:
      item - AssignedConsentPolicy item to be added
      Returns:
      current instance of ConsentModule
    • getModuleLabel

      public String getModuleLabel()
      get label of consent module
      Returns:
      label of consent module
    • setModuleLabel

      public ConsentModule setModuleLabel(String label)
      set label of consent module
      Parameters:
      label - label of consent module
      Returns:
      instance of ConsentModule
    • getModuleName

      public String getModuleName()
      get Name of consent module
      Returns:
      Name of consent module
    • setModuleName

      public ConsentModule setModuleName(String name)
      set Name of consent module
      Parameters:
      name - Name of consent module
      Returns:
      instance of ConsentModule
    • getDomainName

      public String getDomainName()
      get Name of assigned consent domain
      Returns:
      name of assigned consent domain
    • setDomainName

      public ConsentModule setDomainName(String domainName)
      set name of assigned consent domain
      Parameters:
      domainName - name of assigned consent domain
      Returns:
      instance of ConsentModule
    • getModuleComment

      public String getModuleComment()
      get comment to describe purpose of consent module
      Returns:
      comment to describe purpose of consent module
    • setModuleComment

      public ConsentModule setModuleComment(String comment)
      set comment to describe purpose of consent module
      Parameters:
      comment - comment to describe purpose of consent module
      Returns:
      instance of ConsentModule
    • getModuleTitle

      public String getModuleTitle()
      get title of consent module to be used as label etc.
      Returns:
      title of consent module
    • setModuleTitle

      public ConsentModule setModuleTitle(String title)
      set title of consent module to be used as label etc.
      Parameters:
      title - title of consent module to be used as label etc.
      Returns:
      instance of ConsentModule
    • getModuleShortText

      public String getModuleShortText()
      get shorttext of consent module
      Returns:
      shorttext of consent module
    • setModuleShortText

      public ConsentModule setModuleShortText(String shorttext)
      set shorttext of consent module to be used as displayed content
      Parameters:
      shorttext - shorttext of consent module to be used as displayed content
      Returns:
      instance of ConsentModule
    • getModuleText

      public String getModuleText()
      get text of consent module to be used as label etc.
      Returns:
      text of consent module to be used as displayed content
    • setModuleText

      public ConsentModule setModuleText(String text)
      set text of consent module to be used as displayed content
      Parameters:
      text - text of consent module to be used as displayed content
      Returns:
      instance of ConsentModule
    • getExternProperties

      public String getExternProperties()
      get externProperties of consent module
      Returns:
      externProperties of consent module
    • setExternProperties

      public ConsentModule setExternProperties(String externProperties)
      set externProperties of consent module with 0-n properties separated by semicolon
      Parameters:
      externProperties - externProperties of consent module
      Returns:
      instance of ConsentModule
    • getCreationDate

      public Date getCreationDate()
      Return the creation date
      Returns:
      the creation date
    • setCreationDate

      public ConsentModule setCreationDate(Date creationDate)
      Set the creation date
      Parameters:
      creationDate - the creation date
    • toKeyString

      public String toKeyString()
      get module Key as String separated with semicolon e.g. "domain;module name;module version"
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class org.hl7.fhir.r4.model.Element
    • typedCopy

      protected org.hl7.fhir.r4.model.Type typedCopy()
      Specified by:
      typedCopy in class org.hl7.fhir.r4.model.Type