Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Bundle Type detection Rules #1113

Open
ratheesh-kr opened this issue Jan 30, 2025 · 0 comments
Open

Update Bundle Type detection Rules #1113

ratheesh-kr opened this issue Jan 30, 2025 · 0 comments

Comments

@ratheesh-kr
Copy link
Collaborator

These rules provide a structured approach to categorizing FHIR bundles based on the presence of specific resources, profiles, and coding. Here's a breakdown:

Normalized API Bundle Type Assignment Rules:

  1. Rule 1: Multiple Categories in a Bundle

    • A bundle may contain multiple categories. This means a single bundle could potentially be classified as more than one category based on the presence of relevant resource types and profiles.
  2. Rule 2: Screening

    • Category: Assigned if:
      • A resource of type Observation is found.
      • The code.coding.code matches any of these:
        • "96777-8", "97023-6", or "NYS-AHC-HRSN".
      • The meta.profile is:
        • http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-observation-screening-response.
  3. Rule 3: Assessment

    • Category: Assigned if:
      • A resource of type Condition is found.
      • The meta.profile is:
        • http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNY-SDOHCC-Condition.
  4. Rule 4: Referral

    • Category: Assigned if:
      • A resource of type ServiceRequest is found, and the meta.profile is:
        • http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNY-SDOHServiceRequest.
      • OR
      • A resource of type Task is found, and the meta.profile is:
        • http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYSDOHTaskForReferralManagement.

Usage:

  • These rules are used to help identify what category a bundle belongs to based on the resources and profiles it contains.
  • If multiple resource types and profiles are found in a bundle, it may be categorized under multiple types, like Screening, Assessment, or Referral, based on the respective rules.
alan-francis added a commit to alan-francis/polyglot-prime that referenced this issue Jan 30, 2025
alan-francis added a commit that referenced this issue Jan 30, 2025
feat: update bundle type detection rules #1113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant