Class DataRequirement

  • 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 DataRequirement
    extends Type
    implements org.hl7.fhir.instance.model.api.ICompositeType
    Describes a required data item for evaluation in terms of the type of data, and optional code- or date-based filters of the data.
    See Also:
    Serialized Form
    • Field Detail

      • type

        protected CodeType type
        The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.
      • profile

        protected Reference profile
        The profile of the required data, specified as the uri of the profile definition.
      • profileTarget

        protected StructureDefinition profileTarget
        The actual object that is the target of the reference (The profile of the required data, specified as the uri of the profile definition.)
      • mustSupport

        protected List<StringType> mustSupport
        Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
    • Method Detail

      • getTypeElement

        public CodeType getTypeElement()
        Returns:
        type (The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
      • hasType

        public boolean hasType()
      • setTypeElement

        public DataRequirement setTypeElement​(CodeType value)
        Parameters:
        value - type (The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
      • getType

        public String getType()
        Returns:
        The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.
      • setType

        public DataRequirement setType​(String value)
        Parameters:
        value - The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.
      • getProfile

        public Reference getProfile()
        Returns:
        profile (The profile of the required data, specified as the uri of the profile definition.)
      • getProfileTarget

        public StructureDefinition getProfileTarget()
        Returns:
        profile The 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. (The profile of the required data, specified as the uri of the profile definition.)
      • setProfileTarget

        public DataRequirement setProfileTarget​(StructureDefinition value)
        Parameters:
        value - profile The 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. (The profile of the required data, specified as the uri of the profile definition.)
      • getMustSupport

        public List<StringTypegetMustSupport()
        Returns:
        mustSupport (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.)
      • addMustSupportElement

        public StringType addMustSupportElement()
        Returns:
        mustSupport (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.)
      • addMustSupport

        public DataRequirement addMustSupport​(String value)
        Parameters:
        value - mustSupport (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.)
      • hasMustSupport

        public boolean hasMustSupport​(String value)
        Parameters:
        value - mustSupport (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.)
      • getProperty

        public Base[] getProperty​(int hash,
                                  String name,
                                  boolean checkValid)
                           throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        getProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • setProperty

        public void setProperty​(int hash,
                                String name,
                                Base value)
                         throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        setProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • setProperty

        public void setProperty​(String name,
                                Base value)
                         throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        setProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • makeProperty

        public Base makeProperty​(int hash,
                                 String name)
                          throws org.hl7.fhir.exceptions.FHIRException
        Description copied from class: Base
        make 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:
        makeProperty in class Element
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • addChild

        public Base addChild​(String name)
                      throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        addChild in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • fhirType

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

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