Class PdqmMatchOutputBundle

All Implemented Interfaces:
IElement, Serializable, IAnyResource, IBase, IBaseBundle, IBaseResource

public class PdqmMatchOutputBundle extends Bundle
Bundle for ITI-119 Patient Demographics Match Output as defined by the PDQm specification. This is a searchset Bundle containing Patient resources that match the input patient demographics, with each entry including a search score indicating the quality of the match.
Since:
5.2
Author:
Christian Ohr
See Also:
  • Constructor Details

    • PdqmMatchOutputBundle

      public PdqmMatchOutputBundle()
  • Method Details

    • copy

      public PdqmMatchOutputBundle copy()
      Overrides:
      copy in class Bundle
    • copyValues

      public void copyValues(PdqmMatchOutputBundle dst)
    • getMatchedPatients

      public List<Patient> getMatchedPatients()
      Get all matched patients from the bundle
      Returns:
      list of Patient resources
    • getMatchedPatientsSortedByScore

      public List<Patient> getMatchedPatientsSortedByScore()
      Get all matched patients sorted by match score in descending order (highest score first)
      Returns:
      list of Patient resources sorted by match score, or empty list if no entries
    • getMatchScore

      public Double getMatchScore(Bundle.BundleEntryComponent entry)
      Get the match score for a specific entry
      Parameters:
      entry - the bundle entry
      Returns:
      the match score, or null if not set
    • hasMatches

      public boolean hasMatches()
      Check if the bundle contains any matches
      Returns:
      true if there are matched patients
    • getMatchCount

      public int getMatchCount()
      Get the number of matched patients
      Returns:
      count of matched patients