Class Coding

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseCoding, 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, ICoding

public class Coding extends Type implements org.hl7.fhir.instance.model.api.IBaseCoding, org.hl7.fhir.instance.model.api.ICompositeType, ICoding
A reference to a code defined by a terminology system.
See Also:
  • Field Details Link icon

    • system Link icon

      protected UriType system
      The identification of the code system that defines the meaning of the symbol in the code.
    • version Link icon

      protected StringType version
      The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
    • code Link icon

      protected CodeType code
      A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
    • display Link icon

      protected StringType display
      A representation of the meaning of the code in the system, following the rules of the system.
    • userSelected Link icon

      Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
  • Constructor Details Link icon

  • Method Details Link icon

    • getSystemElement Link icon

      Returns:
      system (The identification of the code system that defines the meaning of the symbol in the code.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
    • hasSystemElement Link icon

      public boolean hasSystemElement()
    • hasSystem Link icon

      public boolean hasSystem()
      Specified by:
      hasSystem in interface ICoding
    • setSystemElement Link icon

      Parameters:
      value - system (The identification of the code system that defines the meaning of the symbol in the code.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
    • getSystem Link icon

      public String getSystem()
      Specified by:
      getSystem in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Specified by:
      getSystem in interface ICoding
      Returns:
      The identification of the code system that defines the meaning of the symbol in the code.
    • setSystem Link icon

      public Coding setSystem(String value)
      Specified by:
      setSystem in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Parameters:
      value - The identification of the code system that defines the meaning of the symbol in the code.
    • getVersionElement Link icon

      Returns:
      version (The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
    • hasVersionElement Link icon

      public boolean hasVersionElement()
    • hasVersion Link icon

      public boolean hasVersion()
      Specified by:
      hasVersion in interface ICoding
    • setVersionElement Link icon

      Parameters:
      value - version (The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
    • getVersion Link icon

      public String getVersion()
      Specified by:
      getVersion in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Specified by:
      getVersion in interface ICoding
      Returns:
      The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
    • setVersion Link icon

      public Coding setVersion(String value)
      Specified by:
      setVersion in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Parameters:
      value - The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
    • getCodeElement Link icon

      Returns:
      code (A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
    • hasCodeElement Link icon

      public boolean hasCodeElement()
    • hasCode Link icon

      public boolean hasCode()
      Specified by:
      hasCode in interface ICoding
    • setCodeElement Link icon

      public Coding setCodeElement(CodeType value)
      Parameters:
      value - code (A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
    • getCode Link icon

      public String getCode()
      Specified by:
      getCode in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Specified by:
      getCode in interface ICoding
      Returns:
      A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
    • setCode Link icon

      public Coding setCode(String value)
      Specified by:
      setCode in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Parameters:
      value - A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
    • getDisplayElement Link icon

      Returns:
      display (A representation of the meaning of the code in the system, following the rules of the system.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
    • hasDisplayElement Link icon

      public boolean hasDisplayElement()
    • hasDisplay Link icon

      public boolean hasDisplay()
      Specified by:
      hasDisplay in interface ICoding
    • setDisplayElement Link icon

      Parameters:
      value - display (A representation of the meaning of the code in the system, following the rules of the system.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
    • getDisplay Link icon

      public String getDisplay()
      Specified by:
      getDisplay in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Specified by:
      getDisplay in interface ICoding
      Returns:
      A representation of the meaning of the code in the system, following the rules of the system.
    • setDisplay Link icon

      public Coding setDisplay(String value)
      Specified by:
      setDisplay in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Parameters:
      value - A representation of the meaning of the code in the system, following the rules of the system.
    • getUserSelectedElement Link icon

      Returns:
      userSelected (Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).). This is the underlying object with id, value and extensions. The accessor "getUserSelected" gives direct access to the value
    • hasUserSelectedElement Link icon

      public boolean hasUserSelectedElement()
    • hasUserSelected Link icon

      public boolean hasUserSelected()
    • setUserSelectedElement Link icon

      Parameters:
      value - userSelected (Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).). This is the underlying object with id, value and extensions. The accessor "getUserSelected" gives direct access to the value
    • getUserSelected Link icon

      public boolean getUserSelected()
      Specified by:
      getUserSelected in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Returns:
      Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
    • setUserSelected Link icon

      public Coding setUserSelected(boolean value)
      Specified by:
      setUserSelected in interface org.hl7.fhir.instance.model.api.IBaseCoding
      Parameters:
      value - Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
    • listChildren Link icon

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class Element
    • getNamedProperty Link icon

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty Link icon

      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 Link icon

      public Base 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 Link icon

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • removeChild Link icon

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

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty Link icon

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild Link icon

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

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

      public Coding copy()
      Overrides:
      copy in class Type
    • copyValues Link icon

      public void copyValues(Coding dst)
    • typedCopy Link icon

      protected Coding typedCopy()
      Specified by:
      typedCopy in class Type
    • equalsDeep Link icon

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class Element
    • equalsShallow Link icon

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class Element
    • isEmpty Link icon

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

      public boolean supportsVersion()
      Specified by:
      supportsVersion in interface ICoding
    • supportsDisplay Link icon

      public boolean supportsDisplay()
      Specified by:
      supportsDisplay in interface ICoding
    • is Link icon

      public boolean is(String system, String code)