Class Author

java.lang.Object
org.projecthusky.common.model.Author
Direct Known Subclasses:
AuthorAt, AuthorCh

public class Author extends Object
Author
  • Field Details

    • FUNCTION_CODE_AUTHOR_PATIENT

      public static final Code FUNCTION_CODE_AUTHOR_PATIENT
    • FUNCTION_CODE_AUTHORDEVICE

      public static final Code FUNCTION_CODE_AUTHORDEVICE
  • Constructor Details

    • Author

      public Author()
      Instantiates a new author.
    • Author

      public Author(POCDMT000040AuthoringDevice device)
      Instantiates a new software author (e.g. a laboratory information system)
      Parameters:
      device - the device
    • Author

      public Author(AuthoringDevice device)
      Instantiates a new software author (e.g. a laboratory information system)
      Parameters:
      device - the device
    • Author

      public Author(boolean nullFlavored)
      Creates a null flavored author according to ELGA spec (necessary for PHARM DIS)
      Parameters:
      nullFlavored - True
    • Author

      public Author(Code functionCode)
      Instantiates a new author.
    • Author

      public Author(Name name)
      Instantiates a new human author.
      Parameters:
      name - the name
    • Author

      public Author(Name name, String gln)
      Instantiates a new author.
      Parameters:
      name - Name
      gln - Global Location Number (GLN)
    • Author

      public Author(POCDMT000040Author authorMdht)
      Erstellt ein husky-Author Objekt mittels eines MDHT-Author Objekts.
      Parameters:
      authorMdht - the MDHT Author Object
    • Author

      public Author(Organization organizationAsAuthor)
      Creates a new Author based on the given Organization object
      Parameters:
      organizationAsAuthor - this Organization is used as Author
    • Author

      public Author(Patient patientAsAuthor)
      Creates a new Author based on the given Patient object
      Parameters:
      patientAsAuthor - this Patient is used as Author
    • Author

      public Author(Person person)
      Instantiates a new human author.
      Parameters:
      person - the person
    • Author

      public Author(Person person, String gln)
      Instantiates a new author.
      Parameters:
      person - the person
      gln - Global Location Number (GLN)
  • Method Details

    • addAddress

      public void addAddress(Address address)
      Weist dem Autor eine Postadresse zu.
      Parameters:
      address - Die Postadresse des Autors
    • addId

      public void addId(Identificator identificator)
      Weist dem Autoren eine ID zu.
      Parameters:
      identificator - Kombination von eigentlicher ID und der OID der verwaltenden Domäne
    • addName

      public void addName(Name name)
      Adds the name.
      Parameters:
      name - name
    • getAddress

      public Address getAddress()
      Gets the address.
      Returns:
      the address
    • getAddresses

      public List<Address> getAddresses()
      Gets the addresses.
      Returns:
      the addresses
    • getAsAuthor

      public POCDMT000040AssignedAuthor getAsAuthor()
      Method to get
      Returns:
      the asAuthor
    • setAsAuthor

      public void setAsAuthor(POCDMT000040AssignedAuthor asAuthor)
      Method to set
      Parameters:
      asAuthor - the asAuthor to set
    • getAuthorMdht

      public POCDMT000040Author getAuthorMdht()
      Gets the author.
      Returns:
      the author
    • getCompleteName

      public String getCompleteName()
      Gets the complete name.
      Returns:
      the complete name
    • getFunctionCode

      public Code getFunctionCode()
      Gets the functionCode of the author
      Returns:
      the functionCode. Null, if not present.
    • setFunctionCode

      public void setFunctionCode(Code code)
      Sets the functionCode of the author
      Parameters:
      code - the functionCode
    • getGln

      public String getGln()
      Gets the gln (identification of the author)
      Returns:
      the gln
    • setGln

      public void setGln(String gln)
      Sets the gln.
      Parameters:
      gln - the new gln. If null an Id with nullFlavor = NA will be added.
    • getGlnAsIdentificator

      public Identificator getGlnAsIdentificator()
      Gets the gln as identificator.
      Returns:
      the gln as identificator
    • getIds

      public List<Identificator> getIds()
      Gets all ids of the author
      Returns:
      the ids
    • getMdhtTelecoms

      public List<TEL> getMdhtTelecoms()
    • getName

      public Name getName()
      Gets the (first) family name.
      Returns:
      the name
    • getNames

      public List<Name> getNames()
      Gets the names.
      Returns:
      the names
    • getOrganization

      public Organization getOrganization()
      Gets the organization (RepresentedOrganization). This element can also be used as author represented organization, when a document is beeing sent (via XDS, XDM, XDR).
      Returns:
      organization the organization
    • setOrganization

      public void setOrganization(Organization organization)
      Sets the organization (RepresentedOrganization). The code can also be used as author role, when a document is being sent (via XDS, XDM, XDR).
      Parameters:
      organization - the new organization
    • getPerson

      public POCDMT000040Person getPerson()
      Method to get
      Returns:
      the person
    • setPerson

      public void setPerson(POCDMT000040Person person)
      Method to set
      Parameters:
      person - the person to set
    • getRoleFunction

      public Code getRoleFunction()
      Gets the author function code. This element specifies in which role or function the author is related to this document (e.g. Code "40001" for "Apotheker"). The code can also be used as author role, when a document is beeing sent (via XDS, XDM, XDR).
      Returns:
      code the function code
    • setRoleFunction

      public void setRoleFunction(Code code)
      Sets the author function code. This element specifies in which role or function the author is related to this document (e.g. Code "40001" for "Apotheker"). The code can also be used as author role, when a document is beeing sent (via XDS, XDM, XDR).
      Parameters:
      code - the function code
    • getSpeciality

      public Code getSpeciality()
      Sets the author speciality code. This element specifies the speciality ("Fachrichtung", e.g. "Fachärztin/Facharzt für Allgemeine Innere Medizin" ) of the author. The code can also be used as author speciality, when a document is beeing sent (via XDS, XDM, XDR).
      Returns:
      code the speciality code
    • setSpeciality

      public void setSpeciality(Code code)
      Sets the author speciality code. This element specifies the speciality ("Fachrichtung", e.g. Code "50001" for "Fachärztin/Facharzt für Allgemeine Innere Medizin") of the author. The code can also be used as author speciality, when a document is beeing sent (via XDS, XDM, XDR).
      Parameters:
      code - the speciality code
    • getTelecoms

      public List<Telecom> getTelecoms()
      Gets the telecoms.
      Returns:
      Telecoms the telecoms
    • setTelecoms

      public void setTelecoms(List<Telecom> telecoms)
      Sets the telecoms.
      Parameters:
      telecoms - the new telecoms
    • getTimeAsDate

      public Date getTimeAsDate()
      Gets the author time. The author/time element represents the start time of the author’s participation in the creation of the clinical document
      Returns:
      date the start time of the participation as string
    • getTimeAsHl7Dtm

      public @Nullable Hl7Dtm getTimeAsHl7Dtm()
      Returns the participation start time as an Hl7Dtm or null.
    • getTimeAsInstant

      public @Nullable Instant getTimeAsInstant()
      Returns the participation start time as an Hl7Dtm or null.
    • isAuthorPatient

      public boolean isAuthorPatient()
      Checks if is author patient.
      Returns:
      true, if is author patient
    • setAssignedAuthoringDevice

      public void setAssignedAuthoringDevice(POCDMT000040AuthoringDevice device)
    • setAuthor

      public void setAuthor(POCDMT000040Author author)
      Method to set
      Parameters:
      author - the author to set
    • setFunctionCodePatient

      public void setFunctionCodePatient()
      Indicates that the author is the patient itself.
    • setOtherFunctionCode

      public void setOtherFunctionCode(String codeSystem, String codeSystemName, String originalText)
      Sets the other function code.
      Parameters:
      codeSystem - the code system OID.
      codeSystemName - the name of the code system.
      originalText - the original text (narrative text of the code).
    • setTime

      public void setTime(Calendar date)
      Sets the author time. The author/time element represents the start time of the author’s participation in the creation of the clinical document.
      Parameters:
      date - the start time of the participation as date