Enum Class PdqmProfile

java.lang.Object
java.lang.Enum<PdqmProfile>
org.openehealth.ipf.commons.ihe.fhir.pixpdq.PdqmProfile
All Implemented Interfaces:
Serializable, Comparable<PdqmProfile>, Constable, IheFhirProfile

public enum PdqmProfile extends Enum<PdqmProfile> implements IheFhirProfile
  • Enum Constant Details

    • PDQM_PATIENT

      public static final PdqmProfile PDQM_PATIENT
    • PDQM_MATCH_INPUT_PATIENT

      public static final PdqmProfile PDQM_MATCH_INPUT_PATIENT
    • ITI78_QUERY_PATIENT_RESOURCE_RESPONSE_MESSAGE

      public static final PdqmProfile ITI78_QUERY_PATIENT_RESOURCE_RESPONSE_MESSAGE
    • ITI119_MATCH_OUTPUT_BUNDLE

      public static final PdqmProfile ITI119_MATCH_OUTPUT_BUNDLE
    • ITI119_MATCH_INPUT_PARAMETERS

      public static final PdqmProfile ITI119_MATCH_INPUT_PARAMETERS
  • Field Details

  • Method Details

    • values

      public static PdqmProfile[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PdqmProfile valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • setProfile

      public void setProfile(Resource resource)
      Set the Meta/Profile of the resource
      Specified by:
      setProfile in interface IheFhirProfile
      Parameters:
      resource - FHIR resource
    • hasProfile

      public boolean hasProfile(Resource resource)
      Description copied from interface: IheFhirProfile
      Checks if the resource has this profile
      Specified by:
      hasProfile in interface IheFhirProfile
      Parameters:
      resource - FHIR resource
      Returns:
      true if the resource has this profile
    • registerDefaultTypes

      public static void registerDefaultTypes(FhirContext fhirContext)
      Registers all the profiles and implementing classes in the FhirContext
      Parameters:
      fhirContext - FhirContext
    • profileForResource

      public static Optional<PdqmProfile> profileForResource(IBaseResource resource)
    • profileForUrl

      public static Optional<PdqmProfile> profileForUrl(String url)
    • getUrl

      public String getUrl()
      Description copied from interface: IheFhirProfile
      Gets the canonical URL of the profile
      Specified by:
      getUrl in interface IheFhirProfile
      Returns:
      the profile URL
    • getResourceClass

      public Class<? extends IBaseResource> getResourceClass()
      Description copied from interface: IheFhirProfile
      Gets the resource class associated with this profile
      Specified by:
      getResourceClass in interface IheFhirProfile
      Returns:
      the resource class, or null if not applicable