Class CompartmentCode

  • All Implemented Interfaces:
    Visitable

    @Generated("com.ibm.fhir.tools.CodeGenerator")
    public class CompartmentCode
    extends Code
    • Field Detail

      • PATIENT

        public static final CompartmentCode PATIENT
        Patient

        The compartment definition is for the patient compartment.

      • ENCOUNTER

        public static final CompartmentCode ENCOUNTER
        Encounter

        The compartment definition is for the encounter compartment.

      • RELATED_PERSON

        public static final CompartmentCode RELATED_PERSON
        RelatedPerson

        The compartment definition is for the related-person compartment.

      • PRACTITIONER

        public static final CompartmentCode PRACTITIONER
        Practitioner

        The compartment definition is for the practitioner compartment.

      • DEVICE

        public static final CompartmentCode DEVICE
        Device

        The compartment definition is for the device compartment.

    • Method Detail

      • of

        public static CompartmentCode of​(String value)
        Factory method for creating CompartmentCode objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • string

        public static String string​(String value)
        Inherited factory method for creating CompartmentCode objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • code

        public static Code code​(String value)
        Inherited factory method for creating CompartmentCode objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Code
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Code