Skip to main content

openIMIS Backend Claim AI Quality reference module

This repository holds the files of the openIMIS Backend Claim AI Quality reference module. It is dedicated to be deployed as a module of openimis-be_py.

License: AGPL v3

ORM mapping:

None

Listened Django Signals

  • SubmitClaimsMutation: adds 'claim_ai_quality' key to the json_ext field on claim submissions

Services

  • AiQualityReportService, loading claims used for misclassification report

Reports (template can be overloaded via report_template.tempalte)

  • miscategorisation_report

GraphQL Queries

None

GraphQL Mutations - each mutation emits default signals and return standard error lists (cfr. openimis-be-core_py)

None

Additional Endpoints

  • miscategorisation_report: generating report regarding ai misclassification in PDF format

Reports

  • miscategorisation_report: AI Evaluation accurracy and list of misclassified claims

Configuration options (can be changed via core.ModuleConfiguration)

  • claim_ai_url: AI Evaluation websocket endpoint, default ws://localhost:8000/api/claim_ai/ws/Claim/process/
  • event_based_activation: if False claim bundles are send as scheduled job, if True bundle of claims is sent after each submission,
  • bundle_size: number of claims in one bundle, by default 100,
  • zip_bundle: if True claim bundle is compressed before sending, claim_ai module accepts both compressed and uncompressed bundles,
  • connection_timeout: the maximum waiting time for a connection to websocket, if exceeded TimeoutError is raised,
  • authentication_token: if authentication is required by server token have to be added in configuration,
  • accepted_category_code: code for claim items and services positively evaluated by AI,
  • rejected_category_code": code for claim items and services negatively evaluated by AI,
  • reason_rejected_by_ai_code: rejection code for claims rejected by AI,
  • date_format": date format used in FHIR response, by default YYYY-mm-dd

openIMIS Modules Dependencies

  • core.websocket.AsyncWebSocketClient
  • core.models.ModuleConfiguration
  • core.models.InteractiveUser
  • core.schema.signal_mutation_module_after_mutating
  • claim.models.Claim
  • claim.models.ClaimDetail
  • claim.models.ClaimItem
  • claim.models.ClaimService
  • claim.models.gql_mutations.SubmitClaimsMutation
  • api_fhir_r4.models.Bundle
  • api_fhir_r4.models.BundleType
  • api_fhir_r4.models.BundleEntry
  • api_fhir_r4.serializers.ClaimSerializer
  • location.models.UserDistrict
  • report.services.ReportService

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openimis-be-claim_ai_quality-1.0.0.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openimis_be_claim_ai_quality-1.0.0-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

Details for the file openimis-be-claim_ai_quality-1.0.0.tar.gz.

File metadata

  • Download URL: openimis-be-claim_ai_quality-1.0.0.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for openimis-be-claim_ai_quality-1.0.0.tar.gz
Algorithm Hash digest
SHA256 78669680ab689a7bfa1c1991f28071d92acf54434f8fb99c068858b8dd75cee9
MD5 3ddde7527153d12876ffec86226390f5
BLAKE2b-256 107ce87404a5a2350d7a3470213f979332003482dad7eecfbd0395ff81772af4

See more details on using hashes here.

File details

Details for the file openimis_be_claim_ai_quality-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: openimis_be_claim_ai_quality-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for openimis_be_claim_ai_quality-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48c468b4553260b3141484d96ac0d598e11612e2c0168ce17241bc01b097f390
MD5 04d5a76a76c9ef03f0f0c6178ca52d83
BLAKE2b-256 195bad6465cd539992ae142e6f9cfa93f1a41d0bfa152b5e552f48236b7d2285

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.0

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page