Class ConsentState

  • All Implemented Interfaces:
    Visitable

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

      • DRAFT

        public static final ConsentState DRAFT
        Pending

        The consent is in development or awaiting use but is not yet intended to be acted upon.

      • PROPOSED

        public static final ConsentState PROPOSED
        Proposed

        The consent has been proposed but not yet agreed to by all parties. The negotiation stage.

      • ACTIVE

        public static final ConsentState ACTIVE
        Active

        The consent is to be followed and enforced.

      • REJECTED

        public static final ConsentState REJECTED
        Rejected

        The consent has been rejected by one or more of the parties.

      • INACTIVE

        public static final ConsentState INACTIVE
        Inactive

        The consent is terminated or replaced.

      • ENTERED_IN_ERROR

        public static final ConsentState ENTERED_IN_ERROR
        Entered in Error

        The consent was created wrongly (e.g. wrong patient) and should be ignored.

    • Method Detail

      • of

        public static ConsentState of​(String value)
        Factory method for creating ConsentState 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 ConsentState 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 ConsentState 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