Class ConsentPolicy

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.ConsentPolicy
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 ConsentPolicy extends org.hl7.fhir.r4.model.Type implements org.hl7.fhir.instance.model.api.ICompositeType
FHIR Datatype to hold gICS-Policy 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 ConsentPolicy, using key value default version "1.0"
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    get comment to describe purpose of consent policy
    Return the creation date
    get Name of assigned consent domain
    get externProperties of consent policy
    get consent policy finalized status
    get Label of consent policy
    get Name of consent policy
    get version of consent policy
    int
     
    boolean
     
    setComment(String policycomment)
    set comment to describe purpose of consent policy
    setCreationDate(Date creationDate)
    Set the creation date
    setDomainName(String policyDomainName)
    set name of assigned consent domain
    setExternProperties(String externProperties)
    set externProperties of consent policy with 0-n properties separated by semicolon e.g.
    setFinalized(Boolean finalstate)
    set consent policy finalized status
    setLabel(String policyLabel)
    set Label of consent policy
    setName(String policyname)
    set Name of consent policy
    setVersion(String policyversion)
    set version of consent policy
    get policies Key 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

    • ConsentPolicy

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

    • getVersion

      public String getVersion()
      get version of consent policy
      Returns:
      version of consent policy
    • setVersion

      public ConsentPolicy setVersion(String policyversion)
      set version of consent policy
      Parameters:
      policyversion - version of consent policy
    • getName

      public String getName()
      get Name of consent policy
      Returns:
      Name of consent policy
    • setName

      public ConsentPolicy setName(String policyname)
      set Name of consent policy
      Parameters:
      policyname - Name of consent policy
    • getFinalized

      public Boolean getFinalized()
      get consent policy finalized status
      Returns:
      policy finalized status
    • setFinalized

      public ConsentPolicy setFinalized(Boolean finalstate)
      set consent policy finalized status
      Parameters:
      finalstate - finalized status policy finalized status
      Returns:
      instance of consent policy
    • getLabel

      public String getLabel()
      get Label of consent policy
      Returns:
      Label of consent policy
    • setLabel

      public ConsentPolicy setLabel(String policyLabel)
      set Label of consent policy
      Parameters:
      policyLabel - Label of consent policy
    • getDomainName

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

      public ConsentPolicy setDomainName(String policyDomainName)
      set name of assigned consent domain
      Parameters:
      policyDomainName - name of assigned consent domain
    • getComment

      public String getComment()
      get comment to describe purpose of consent policy
      Returns:
      comment to describe purpose of consent policy
    • setComment

      public ConsentPolicy setComment(String policycomment)
      set comment to describe purpose of consent policy
      Parameters:
      policycomment - comment to describe purpose of consent policy
    • getExternProperties

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

      public ConsentPolicy setExternProperties(String externProperties)
      set externProperties of consent policy with 0-n properties separated by semicolon e.g. validity_period=p1y
      Parameters:
      externProperties - externProperties of consent policy
      Returns:
      instance of ConsentPolicy
    • getCreationDate

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

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

      public String toKeyString()
      get policies Key String separated with semicolon e.g. "domain;policyname;policyversion"
    • 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