Class Base

    • Constructor Detail

      • Base

        public Base()
    • Method Detail

      • getUserData

        public Object getUserData​(String name)
        Specified by:
        getUserData in interface org.hl7.fhir.instance.model.api.IBase
      • setUserData

        public void setUserData​(String name,
                                Object value)
        Specified by:
        setUserData in interface org.hl7.fhir.instance.model.api.IBase
      • hasFormatComment

        public boolean hasFormatComment()
        Specified by:
        hasFormatComment in interface org.hl7.fhir.instance.model.api.IBase
      • getFormatCommentsPre

        public List<StringgetFormatCommentsPre()
        Specified by:
        getFormatCommentsPre in interface org.hl7.fhir.instance.model.api.IBase
      • getFormatCommentsPost

        public List<StringgetFormatCommentsPost()
        Specified by:
        getFormatCommentsPost in interface org.hl7.fhir.instance.model.api.IBase
      • fhirType

        public abstract String fhirType()
        Specified by:
        fhirType in interface org.hl7.fhir.instance.model.api.IBase
      • setProperty

        public Base setProperty​(String name,
                                Base value)
                         throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • addChild

        public Base addChild​(String name)
                      throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • children

        public List<Propertychildren()
        Supports iterating the children elements in some generic processor or browser All defined children will be listed, even if they have no value on this instance Note that the actual content of primitive or xhtml elements is not iterated explicitly. To find these, the processing code must recognise the element as a primitive, typecast the value to a Type, and examine the value
        Returns:
        a list of all the children defined for this element
      • listChildrenByName

        public List<BaselistChildrenByName​(String name)
                                      throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • listChildrenByName

        public Base[] listChildrenByName​(String name,
                                         boolean checkValid)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      • compareDeep

        public static boolean compareDeep​(org.hl7.fhir.utilities.xhtml.XhtmlNode div1,
                                          org.hl7.fhir.utilities.xhtml.XhtmlNode div2,
                                          boolean allowNull)
      • castToType

        public Type castToType​(Base b)
                        throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToBoolean

        public BooleanType castToBoolean​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToInteger

        public IntegerType castToInteger​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToDecimal

        public DecimalType castToDecimal​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToInstant

        public InstantType castToInstant​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToString

        public StringType castToString​(Base b)
                                throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToUri

        public UriType castToUri​(Base b)
                          throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToDate

        public DateType castToDate​(Base b)
                            throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToDateTime

        public DateTimeType castToDateTime​(Base b)
                                    throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToTime

        public TimeType castToTime​(Base b)
                            throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToCode

        public CodeType castToCode​(Base b)
                            throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToOid

        public OidType castToOid​(Base b)
                          throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToId

        public IdType castToId​(Base b)
                        throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToMarkdown

        public MarkdownType castToMarkdown​(Base b)
                                    throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToAnnotation

        public Annotation castToAnnotation​(Base b)
                                    throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToDosage

        public Dosage castToDosage​(Base b)
                            throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToAttachment

        public Attachment castToAttachment​(Base b)
                                    throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToIdentifier

        public Identifier castToIdentifier​(Base b)
                                    throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToCoding

        public Coding castToCoding​(Base b)
                            throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToQuantity

        public Quantity castToQuantity​(Base b)
                                throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToMoney

        public Money castToMoney​(Base b)
                          throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToDuration

        public Duration castToDuration​(Base b)
                                throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToRange

        public Range castToRange​(Base b)
                          throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToPeriod

        public Period castToPeriod​(Base b)
                            throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToRatio

        public Ratio castToRatio​(Base b)
                          throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToSampledData

        public SampledData castToSampledData​(Base b)
                                      throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToSignature

        public Signature castToSignature​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToHumanName

        public HumanName castToHumanName​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToAddress

        public Address castToAddress​(Base b)
                              throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToContributor

        public Contributor castToContributor​(Base b)
                                      throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToTiming

        public Timing castToTiming​(Base b)
                            throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToReference

        public Reference castToReference​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToMeta

        public Meta castToMeta​(Base b)
                        throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToExtension

        public Extension castToExtension​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToResource

        public Resource castToResource​(Base b)
                                throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToNarrative

        public Narrative castToNarrative​(Base b)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToXhtml

        public org.hl7.fhir.utilities.xhtml.XhtmlNode castToXhtml​(Base b)
                                                           throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • castToXhtmlString

        public String castToXhtmlString​(Base b)
                                 throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getProperty

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

        public Base setProperty​(int hash,
                                String name,
                                Base value)
                         throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • makeProperty

        public Base makeProperty​(int hash,
                                 String name)
                          throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getTypesForProperty

        public String[] getTypesForProperty​(int hash,
                                            String name)
                                     throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getNamedProperty

        public Property getNamedProperty​(String _name)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getNamedProperty

        public Property getNamedProperty​(int _hash,
                                         String _name,
                                         boolean _checkValid)
                                  throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException