Class EMediplanHealthcarePerson

java.lang.Object
org.projecthusky.fhir.emed.ch.epr.model.emediplan.EMediplanHealthcarePerson
All Implemented Interfaces:
EMediplanObject
Direct Known Subclasses:
ChMed16AHealthcarePerson, ChMed23AHealthcarePerson

public abstract class EMediplanHealthcarePerson extends Object implements EMediplanObject
Abstract base model for an eMediplan HealthcarePerson object, used in both CHMED16A ePrescription and CHMED23A eMediplan documents.
  • Constructor Details

    • EMediplanHealthcarePerson

      public EMediplanHealthcarePerson()
  • Method Details

    • getGln

      public abstract @Nullable String getGln()
    • getFirstName

      public abstract String getFirstName()
    • getLastName

      public abstract String getLastName()
    • getZsr

      public abstract @Nullable String getZsr()
    • setGln

      public abstract void setGln(@Nullable String gln)
    • setFirstName

      public abstract void setFirstName(String firstName)
    • setLastName

      public abstract void setLastName(String lastName)
    • setZsr

      public abstract void setZsr(@Nullable String zsr)
    • getGlnFieldName

      public abstract String getGlnFieldName()
    • getFirstNameFieldName

      public abstract String getFirstNameFieldName()
    • getLastNameFieldName

      public abstract String getLastNameFieldName()
    • validate

      public ValidationResult validate(@Nullable String basePath)
      Description copied from interface: EMediplanObject
      Validates the eMediplan object, without any further context than its JSON path and its own content, against the eMediplan specs.
      Specified by:
      validate in interface EMediplanObject
      Parameters:
      basePath - The JSON path of this object. If null, the object is considered to be root. Any validation issues produced by the validation will use this path as a base for each issue's path.
      Returns:
      The validation result containing all the encountered validation issues, if any.
    • hasExtensions

      public boolean hasExtensions(boolean inDepth)
      Description copied from interface: EMediplanObject
      Whether the eMediplan object has any extension or not.
      Specified by:
      hasExtensions in interface EMediplanObject
      Parameters:
      inDepth - If true, the called object, and all its children objects, are subject to the check. If false, only the called object is checked for extensions.
      Returns:
      true if the object contains any extensions; false otherwise.
    • validate

      public ValidationResult validate(@Nullable String basePath, EMediplanType mediplanType)
    • fromChEmedEprPractitioner

      protected static <T extends EMediplanHealthcarePerson> T fromChEmedEprPractitioner(ChEmedEprPractitioner practitioner, Class<T> type) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException
      Gets an eMediplan practitioner object from a CH EMED EPR Practitioner object.
      Parameters:
      practitioner - The CH EMED EPR Practitioner to be converted.
      Returns:
      The resulting eMediplan practitioner.
      Throws:
      NoSuchMethodException
      InvocationTargetException
      InstantiationException
      IllegalAccessException
    • fromChEmedEprPractitioner

      public static <T extends EMediplanHealthcarePerson> T fromChEmedEprPractitioner(ChEmedEprPractitioner practitioner, Supplier<T> hcSupplier)
      Gets an eMediplan practitioner object from a CH EMED EPR Practitioner object.
      Parameters:
      practitioner - The CH EMED EPR Practitioner to be converted.
      hcSupplier - The supplier of the HealthcarePerson object, normally a no-args constructor.
      Returns:
      The resulting eMediplan practitioner.
    • toFhir

      Gets the FHIR representation of this eMediplan healthcare person as a ChEmedEprPractitioner object.