Class DocumentMetadataCh

java.lang.Object
org.projecthusky.common.communication.DocumentMetadata
org.projecthusky.communication.ch.DocumentMetadataCh

public class DocumentMetadataCh extends DocumentMetadata
  • Constructor Details

    • DocumentMetadataCh

      public DocumentMetadataCh()
      Instantiates a new document meta data.
    • DocumentMetadataCh

      public DocumentMetadataCh(org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry documentEntryType)
      Instantiates a new swiss (ch) specific document meta data object.
      Parameters:
      documentEntryType - the document entry type
    • DocumentMetadataCh

      public DocumentMetadataCh(DocumentMetadata dm)
      Instantiates a new swiss (ch) specific document meta data object.
      Parameters:
      dm - the DocumentMetadata object
  • Method Details

    • addConfidentialityCode

      public void addConfidentialityCode(ValueSetEnumInterface code)
      Adds the (optional) confidentialityCode code (e.g. '30001' for 'administrative data')
      Parameters:
      code - the code
    • getClassCodeEnum

      public ClassCode getClassCodeEnum()
      Gets the classCode
      Returns:
      Code element with classCode as Enum
    • getConfidentialityCodesEnum

      public List<ConfidentialityCode> getConfidentialityCodesEnum()
      Gets the confidentialityCode list
      Returns:
      the ArrayList with ConfidentialityCodes as Enums
    • getFormatCodeEnum

      public FormatCode getFormatCodeEnum()
      Gets the formatCode
      Returns:
      formatCode as Enum
    • getHealthcareFacilityTypeCodeEnum

      public HealthcareFacilityTypeCode getHealthcareFacilityTypeCodeEnum()
      Gets the healthcareFacilityTypeCode
      Returns:
      healthcareFacilityTypeCode as Enum
    • getLanguageCodeEnum

      public LanguageCode getLanguageCodeEnum()
      Gets the languageCode
      Returns:
      codedLanguage as Enum
    • getMimeTypeCodeEnum

      public MimeType getMimeTypeCodeEnum()
      Method to get mimetype
      Returns:
      the mimetype of the document
    • getPracticeSettingCodeEnum

      public PracticeSettingCode getPracticeSettingCodeEnum()
      Method to get the practice settings code
      Returns:
      the pactice settings code
    • getTypeCodeEnum

      public TypeCode getTypeCodeEnum()
      Gets the practice setting code. This is the medical speciality of the practice where the document was produced
      Returns:
      the practiceSettingCode as Enum
    • setClassCode

      public void setClassCode(ClassCode code)
      Sets the (required, but in principle computable) class code, which defines the class of the document (e.g. 'DCT01' for "Notes on Consultations")
      Parameters:
      code - the new class code
    • setCodedLanguage

      public void setCodedLanguage(LanguageCode codedLanguage)
      Sets the (required) coded language (e.g. "de-CH"). This code can be extracted from CDA Document automatically.
      Parameters:
      codedLanguage - the new language code
    • setFormatCode

      public void setFormatCode(FormatCode code)
      Sets the (required) format code (e.g. 'urn:epd:2015:EPD_Basic_Document' for an 'EDP Document')
      Parameters:
      code - the new format code
    • setHealthcareFacilityTypeCode

      public void setHealthcareFacilityTypeCode(HealthcareFacilityTypeCode code)
      Sets the (required) healthcare facility type code (e.g. '20001' for 'Institut für medizinische Diagnostik')
      Parameters:
      code - the new healthcare facility type code
    • setMimeType

      public void setMimeType(MimeType mimeType)
      Sets the (required) mime type (e.g. "text/xml")
      Parameters:
      mimeType - the new mime type
    • setPracticeSettingCode

      public void setPracticeSettingCode(PracticeSettingCode code)
      Sets the (required) practice setting code. This is the medical speciality of the practice where the document was produced (e.g. '10001' for 'Allergologie')
      Parameters:
      code - the new practice setting code
    • setTypeCode

      public void setTypeCode(TypeCode code)
      Sets the (required) type code. Specifies the type of the document (like the class code, but more specific) (e.g. Code for 'Patienteneinwilligung')
      Parameters:
      code - the new type code
    • setOriginalProviderRole

      public void setOriginalProviderRole(OriginalProviderRole code)
      Sets the (required) original provider code. Specifies the role of the provider of the document.
      Parameters:
      code - the new original provider role code