Class ChEmedOrganization

java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.BaseResource
org.hl7.fhir.r4.model.Resource
org.hl7.fhir.r4.model.DomainResource
org.hl7.fhir.r4.model.Organization
org.projecthusky.fhir.emed.ch.common.resource.ChEmedOrganization
All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource
Direct Known Subclasses:
ChEmedEprOrganization

public class ChEmedOrganization extends org.hl7.fhir.r4.model.Organization
The HAPI custom structure for CH-EMED Organization.
Author:
Quentin Ligier
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.Organization

    org.hl7.fhir.r4.model.Organization.OrganizationContactComponent
  • Field Summary

    Fields inherited from class org.hl7.fhir.r4.model.Organization

    active, ACTIVE, address, ADDRESS, ADDRESS_CITY, ADDRESS_COUNTRY, ADDRESS_POSTALCODE, ADDRESS_STATE, ADDRESS_USE, alias, contact, endpoint, ENDPOINT, endpointTarget, identifier, IDENTIFIER, INCLUDE_ENDPOINT, INCLUDE_PARTOF, name, NAME, partOf, PARTOF, partOfTarget, PHONETIC, SP_ACTIVE, SP_ADDRESS, SP_ADDRESS_CITY, SP_ADDRESS_COUNTRY, SP_ADDRESS_POSTALCODE, SP_ADDRESS_STATE, SP_ADDRESS_USE, SP_ENDPOINT, SP_IDENTIFIER, SP_NAME, SP_PARTOF, SP_PHONETIC, SP_TYPE, telecom, type, TYPE

    Fields inherited from class org.hl7.fhir.r4.model.DomainResource

    contained, extension, modifierExtension, text

    Fields inherited from class org.hl7.fhir.r4.model.Resource

    id, implicitRules, language, meta

    Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource

    RES_ID, SP_RES_ID

    Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource

    INCLUDE_ALL, WILDCARD_ALL_SET
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor for the parser.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    Returns whether address exists.
    boolean
    Returns whether BER code exists.
    boolean
    Returns whether GLN code exists.
    boolean
    Returns whether UIDB code exists.
    boolean
    Returns whether ZSR code exists.
    org.hl7.fhir.r4.model.Address
    Resolves the organization's address identifier or throws.
    @Nullable String
    Resolves the organization's BER identifier.
    @Nullable String
    Resolves the organization's GLN identifier.
    @Nullable String
    Resolves the organization's UIDB identifier.
    @Nullable String
    Resolves the organization's ZSR identifier.
    setAddress(org.hl7.fhir.r4.model.Address address)
    Sets the organization's address.
    org.hl7.fhir.r4.model.Identifier
    Sets the organization's BER identifier.
    org.hl7.fhir.r4.model.Identifier
    Sets the organization's GLN identifier.
    org.hl7.fhir.r4.model.Identifier
    Sets the organization's UIDB identifier.
    org.hl7.fhir.r4.model.Identifier
    Sets the organization's ZSR identifier.

    Methods inherited from class org.hl7.fhir.r4.model.Organization

    addAddress, addAddress, addAlias, addAliasElement, addChild, addContact, addContact, addEndpoint, addEndpoint, addEndpointTarget, addIdentifier, addIdentifier, addTelecom, addTelecom, addType, addType, copyValues, equalsDeep, equalsShallow, fhirType, getActive, getActiveElement, getAddress, getAddressFirstRep, getAlias, getContact, getContactFirstRep, getEndpoint, getEndpointFirstRep, getEndpointTarget, getIdentifier, getIdentifierFirstRep, getName, getNamedProperty, getNameElement, getPartOf, getPartOfTarget, getProperty, getResourceType, getTelecom, getTelecomFirstRep, getType, getTypeFirstRep, getTypesForProperty, hasActive, hasActiveElement, hasAlias, hasAlias, hasContact, hasEndpoint, hasIdentifier, hasName, hasNameElement, hasPartOf, hasTelecom, hasType, isEmpty, listChildren, makeProperty, removeChild, setActive, setActiveElement, setAddress, setAlias, setContact, setEndpoint, setIdentifier, setName, setNameElement, setPartOf, setPartOfTarget, setProperty, setProperty, setTelecom, setType, typedCopy

    Methods inherited from class org.hl7.fhir.r4.model.DomainResource

    addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText

    Methods inherited from class org.hl7.fhir.r4.model.Resource

    copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta

    Methods inherited from class org.hl7.fhir.r4.model.BaseResource

    getStructureFhirVersionEnum, isResource, setId

    Methods inherited from class org.hl7.fhir.r4.model.Base

    castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource

    getId, getIdElement, getLanguageElement, getUserData, setId, setUserData

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBase

    getFormatCommentsPost, getFormatCommentsPre, hasFormatComment

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource

    getMeta, getStructureFhirVersionEnum, isDeleted, setId
  • Constructor Details

    • ChEmedOrganization

      public ChEmedOrganization()
      Empty constructor for the parser.
  • Method Details

    • resolveBer

      public @Nullable String resolveBer()
      Resolves the organization's BER identifier.
      Returns:
      the BER identifier or null.
    • resolveUidb

      public @Nullable String resolveUidb()
      Resolves the organization's UIDB identifier.
      Returns:
      the UIDB identifier or null.
    • resolveZsr

      public @Nullable String resolveZsr()
      Resolves the organization's ZSR identifier.
      Returns:
      the ZSR identifier or null.
    • resolveGln

      public @Nullable String resolveGln()
      Resolves the organization's GLN identifier.
      Returns:
      the GLN identifier or null.
    • resolveAddress

      @ExpectsValidResource public org.hl7.fhir.r4.model.Address resolveAddress() throws InvalidEmedContentException
      Resolves the organization's address identifier or throws.
      Returns:
      the address.
      Throws:
      InvalidEmedContentException - if the organization's address is missing.
    • hasBer

      public boolean hasBer()
      Returns whether BER code exists.
      Returns:
      true if the BER code exists, false otherwise.
    • hasUidb

      public boolean hasUidb()
      Returns whether UIDB code exists.
      Returns:
      true if the UIDB code exists, false otherwise.
    • hasZsr

      public boolean hasZsr()
      Returns whether ZSR code exists.
      Returns:
      true if the ZSR code exists, false otherwise.
    • hasGln

      public boolean hasGln()
      Returns whether GLN code exists.
      Returns:
      true if the GLN code exists, false otherwise.
    • hasAddress

      public boolean hasAddress()
      Returns whether address exists.
      Overrides:
      hasAddress in class org.hl7.fhir.r4.model.Organization
      Returns:
      true if the address exists, false otherwise.
    • setBer

      public org.hl7.fhir.r4.model.Identifier setBer(String ber)
      Sets the organization's BER identifier. If the BER already exists, it's replaced.
      Parameters:
      ber - the organization's BER identifier.
      Returns:
      the created/modified Identifier
    • setUidb

      public org.hl7.fhir.r4.model.Identifier setUidb(String uidb)
      Sets the organization's UIDB identifier. If the UIDB already exists, it's replaced.
      Parameters:
      uidb - the organization's UIDB identifier.
      Returns:
      the created/modified Identifier
    • setZsr

      public org.hl7.fhir.r4.model.Identifier setZsr(String zsr)
      Sets the organization's ZSR identifier. If the ZSR already exists, it's replaced.
      Parameters:
      zsr - the organization's ZSR identifier.
      Returns:
      the created/modified Identifier
    • setGln

      public org.hl7.fhir.r4.model.Identifier setGln(String gln)
      Sets the organization's GLN identifier. If the GLN already exists, it's replaced.
      Parameters:
      gln - the organization's GLN identifier.
      Returns:
      the created/modified Identifier.
    • setAddress

      public ChEmedOrganization setAddress(org.hl7.fhir.r4.model.Address address)
      Sets the organization's address. If the address already exists, it's replaced.
      Parameters:
      address - the organization's address.
      Returns:
      this.
    • copy

      public ChEmedOrganization copy()
      Overrides:
      copy in class org.hl7.fhir.r4.model.Organization