Enum Class PixmProfile

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

public enum PixmProfile extends Enum<PixmProfile> implements IheFhirProfile
Enumeration of PIXm profile definitions for ITI-83 (Mobile Patient Identifier Cross-reference Query) and ITI-104 (Patient Identity Feed FHIR).

This enum defines the FHIR profiles used in the PIXm transactions, including the Parameters resources for input and output of the $ihe-pix operation and the Patient resource of the feed.

Since:
5.2
Author:
Christian Ohr
  • Enum Constant Details

    • PIXM_QUERY_PARAMETERS_IN

      public static final PixmProfile PIXM_QUERY_PARAMETERS_IN
    • PIXM_QUERY_PARAMETERS_OUT

      public static final PixmProfile PIXM_QUERY_PARAMETERS_OUT
    • PIXM_PATIENT

      public static final PixmProfile PIXM_PATIENT
  • Field Details

  • Method Details

    • values

      public static PixmProfile[] 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 PixmProfile 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<PixmProfile> profileForResource(IBaseResource resource)
    • profileForUrl

      public static Optional<PixmProfile> 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