Class DG1

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class DG1 extends AbstractSegment

Represents an HL7 DG1 message segment (Diagnosis). This segment has the following fields:

  • DG1-1: Set ID - DG1 (SI)
  • DG1-2: Diagnosis Coding Method (ID) optional
  • DG1-3: Diagnosis Code - DG1 (CE) optional
  • DG1-4: Diagnosis Description (ST) optional
  • DG1-5: Diagnosis Date/Time (TS) optional
  • DG1-6: Diagnosis Type (IS)
  • DG1-7: Major Diagnostic Category (CE) optional
  • DG1-8: Diagnostic Related Group (CE) optional
  • DG1-9: DRG Approval Indicator (ID) optional
  • DG1-10: DRG Grouper Review Code (IS) optional
  • DG1-11: Outlier Type (CE) optional
  • DG1-12: Outlier Days (NM) optional
  • DG1-13: Outlier Cost (CP) optional
  • DG1-14: Grouper Version And Type (ST) optional
  • DG1-15: Diagnosis Priority (ID) optional
  • DG1-16: Diagnosing Clinician (XCN) optional repeating
  • DG1-17: Diagnosis Classification (IS) optional
  • DG1-18: Confidential Indicator (ID) optional
  • DG1-19: Attestation Date/Time (TS) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDDG1

      public SI getSetIDDG1()
      Returns DG1-1: "Set ID - DG1" - creates it if necessary
    • getDg11_SetIDDG1

      public SI getDg11_SetIDDG1()
      Returns DG1-1: "Set ID - DG1" - creates it if necessary
    • getDiagnosisCodingMethod

      Returns DG1-2: "Diagnosis Coding Method" - creates it if necessary
    • getDg12_DiagnosisCodingMethod

      Returns DG1-2: "Diagnosis Coding Method" - creates it if necessary
    • getDiagnosisCodeDG1

      Returns DG1-3: "Diagnosis Code - DG1" - creates it if necessary
    • getDg13_DiagnosisCodeDG1

      Returns DG1-3: "Diagnosis Code - DG1" - creates it if necessary
    • getDiagnosisDescription

      Returns DG1-4: "Diagnosis Description" - creates it if necessary
    • getDg14_DiagnosisDescription

      Returns DG1-4: "Diagnosis Description" - creates it if necessary
    • getDiagnosisDateTime

      Returns DG1-5: "Diagnosis Date/Time" - creates it if necessary
    • getDg15_DiagnosisDateTime

      Returns DG1-5: "Diagnosis Date/Time" - creates it if necessary
    • getDiagnosisType

      public IS getDiagnosisType()
      Returns DG1-6: "Diagnosis Type" - creates it if necessary
    • getDg16_DiagnosisType

      Returns DG1-6: "Diagnosis Type" - creates it if necessary
    • getMajorDiagnosticCategory

      Returns DG1-7: "Major Diagnostic Category" - creates it if necessary
    • getDg17_MajorDiagnosticCategory

      Returns DG1-7: "Major Diagnostic Category" - creates it if necessary
    • getDiagnosticRelatedGroup

      Returns DG1-8: "Diagnostic Related Group" - creates it if necessary
    • getDg18_DiagnosticRelatedGroup

      Returns DG1-8: "Diagnostic Related Group" - creates it if necessary
    • getDRGApprovalIndicator

      Returns DG1-9: "DRG Approval Indicator" - creates it if necessary
    • getDg19_DRGApprovalIndicator

      Returns DG1-9: "DRG Approval Indicator" - creates it if necessary
    • getDRGGrouperReviewCode

      Returns DG1-10: "DRG Grouper Review Code" - creates it if necessary
    • getDg110_DRGGrouperReviewCode

      Returns DG1-10: "DRG Grouper Review Code" - creates it if necessary
    • getOutlierType

      public CE getOutlierType()
      Returns DG1-11: "Outlier Type" - creates it if necessary
    • getDg111_OutlierType

      Returns DG1-11: "Outlier Type" - creates it if necessary
    • getOutlierDays

      public NM getOutlierDays()
      Returns DG1-12: "Outlier Days" - creates it if necessary
    • getDg112_OutlierDays

      Returns DG1-12: "Outlier Days" - creates it if necessary
    • getOutlierCost

      public CP getOutlierCost()
      Returns DG1-13: "Outlier Cost" - creates it if necessary
    • getDg113_OutlierCost

      Returns DG1-13: "Outlier Cost" - creates it if necessary
    • getGrouperVersionAndType

      Returns DG1-14: "Grouper Version And Type" - creates it if necessary
    • getDg114_GrouperVersionAndType

      Returns DG1-14: "Grouper Version And Type" - creates it if necessary
    • getDiagnosisPriority

      Returns DG1-15: "Diagnosis Priority" - creates it if necessary
    • getDg115_DiagnosisPriority

      Returns DG1-15: "Diagnosis Priority" - creates it if necessary
    • getDiagnosingClinician

      Returns all repetitions of Diagnosing Clinician (DG1-16).
    • getDg116_DiagnosingClinician

      Returns all repetitions of Diagnosing Clinician (DG1-16).
    • getDiagnosingClinicianReps

      Returns a count of the current number of repetitions of Diagnosing Clinician (DG1-16). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getDiagnosingClinician

      public XCN getDiagnosingClinician(int rep)
      Returns a specific repetition of DG1-16: "Diagnosing Clinician" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getDg116_DiagnosingClinician

      Returns a specific repetition of DG1-16: "Diagnosing Clinician" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getDg116_DiagnosingClinicianReps

      Returns a count of the current number of repetitions of Diagnosing Clinician (DG1-16). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertDiagnosingClinician

      public XCN insertDiagnosingClinician(int rep) throws HL7Exception
      Inserts a repetition of DG1-16: "Diagnosing Clinician" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertDg116_DiagnosingClinician

      Inserts a repetition of DG1-16: "Diagnosing Clinician" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeDiagnosingClinician

      public XCN removeDiagnosingClinician(int rep) throws HL7Exception
      Removes a repetition of DG1-16: "Diagnosing Clinician" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeDg116_DiagnosingClinician

      Removes a repetition of DG1-16: "Diagnosing Clinician" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getDiagnosisClassification

      Returns DG1-17: "Diagnosis Classification" - creates it if necessary
    • getDg117_DiagnosisClassification

      Returns DG1-17: "Diagnosis Classification" - creates it if necessary
    • getConfidentialIndicator

      Returns DG1-18: "Confidential Indicator" - creates it if necessary
    • getDg118_ConfidentialIndicator

      Returns DG1-18: "Confidential Indicator" - creates it if necessary
    • getAttestationDateTime

      Returns DG1-19: "Attestation Date/Time" - creates it if necessary
    • getDg119_AttestationDateTime

      Returns DG1-19: "Attestation Date/Time" - creates it if necessary
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment