You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MedicalCodingPipeline and SummarizationPipeline implementations (#95)
* Added connector modules
* Fix typo
* Added processing of io connectors in pipelines
* Refactored CDA related processing in use case to connectors
* Added tests
* Added CdsFhirConnector
* first pass at adding spacy and hf integrations
* Updated use case functions and tests
* WIP connector usage in pipelines and components
* Fix model import name in docs
* Update Bundle validator method to dynamically import nested resource types
* Update CdsFhirConnector input method validations
* Add create method to CdsFhirData
* Fixed CdsResponse should return list of actions
* Added tests
* Added pipeline tests
* fix pyproject
* adding langchain and modifying document
* added testing
* Changed .add() -> .add_node() to make more explicit and use convention of BaseObject and base.py in modules
* Update documentation to reflect changes in this PR
* adding docs
* finish docs
* fix test
* fix test2
* WIP
* skip transformers test
* fix tests
* adding magicmock for iterable
* respond to feedback
* Refactor and update document container and ccddata design
* Fix tests
* Add docstrings
* Replace Model with ModelRouter
* Fix docs ci
* Add method to add concepts in spacy component
* Refactor Document container
* Update pipeline load method to dynamically read from string paths
* Fix tests
* Change load method to use source parameter
* Renamed integration components
* Remove spacy from preprocessor component and allow callable instead
* Pass kwargs to integration components
* Added CdsCardCreator implementation
* Updated tests for prebuilt pipelines
* Added tests for pipeline loading method and modelrouter
* Update test for spacy integration
* Tweak fixture
* Use Mixin for ModelRouter
* Clean up __init__ imports
* Fix resourceType not showing up by explicitly passing it in when called in data generator
* Parse text from DocumentReference in cdsfhir
* Add delimiter to create multiple cards and basic text cleaner for templates to card reader
* Make model loading more explicit and added langchain routing
* Update prebuilt pipeline initialization methods
* Update tests
* Added cookbook
* Moved default mapping initialization inside data generator
* Split .load method to from_model_id and from_local_model and added template path as init option
* Update tests and docs
* Tidy up docstrings and .load usage
* Update tests
* Update documentation
* Add cookbook examples
* Update dependencies
---------
Co-authored-by: Adam Kells <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ pip install healthchain
19
19
```
20
20
First time here? Check out our [Docs](https://dotimplement.github.io/HealthChain/) page!
21
21
22
+
Came here from NHS RPySOC 2024 ✨? [CDS sandbox walkthrough](https://dotimplement.github.io/HealthChain/cookbook/cds_sandbox/)
23
+
22
24
## Features
23
25
-[x] 🛠️ Build custom pipelines or use [pre-built ones](https://dotimplement.github.io/HealthChain/reference/pipeline/pipeline/#prebuilt) for your healthcare NLP and ML tasks
24
26
-[x] 🏗️ Add built-in [CDA and FHIR parsers](https://dotimplement.github.io/HealthChain/reference/utilities/cda_parser/) to connect your pipeline to interoperability standards
@@ -40,7 +42,7 @@ Pipelines provide a flexible way to build and manage processing pipelines for NL
40
42
```python
41
43
from healthchain.io.containers import Document
42
44
from healthchain.pipeline import Pipeline
43
-
from healthchain.pipeline.components import TextPreProcessor, Model, TextPostProcessor
45
+
from healthchain.pipeline.components import TextPreProcessor, SpacyNLP, TextPostProcessor
"Your hospital stay for pneumonia is now complete and you are cleared for discharge home today. During your 5-day admission, you received intravenous antibiotics which have now been changed to oral Co-amoxiclav 625mg three times daily for 5 more days, and you should complete this full course. Take regular Paracetamol 1g four times daily as needed for fever or discomfort, and continue using your regular inhalers as prescribed. You should rest at home for at least 7 days and gradually increase your activity level as you feel able. Use 2-3 pillows when sleeping to help with breathing and try to drink at least 6-8 glasses of water daily. Call your GP or return to hospital immediately if you develop increased shortness of breath, chest pain, fever above 38°C, or coughing up blood. Schedule a follow-up appointment with your GP within 7 days, and attend your chest X-ray appointment scheduled for next Thursday at 2:30 PM to confirm the pneumonia has cleared. The district nurse will visit you at home tomorrow to check your progress and oxygen levels.",
3
+
"73-year-old male post CVA ready for discharge to Cedar House Rehabilitation facility tomorrow. Transport booked for 1100hrs - requires bariatric ambulance and 2 crew members (confirmed). Medication reconciliation completed - pharmacy preparing discharge medications (Apixaban 5mg, Baclofen 20mg MR, new anticoagulation card) for collection by daughter at 0900. Patient requires hoisting and pressure-relieving equipment - ward to arrange hospital bed and mattress from equipment library before transfer. Outstanding tasks: 1) Final INR check due 0800 tomorrow, 2) SALT assessment scheduled 0830 tomorrow - must be completed prior to transfer, 3) MAR charts and medication administration record to be faxed to Cedar House before 1000. Social services have confirmed funding for 6-week rehabilitation placement. Daughter (NOK) aware of discharge plan and will bring clothing. Follow-up arrangements needed: Stroke clinic in 4 weeks, SALT outpatient review in 7 days - appointments pending. Current location: Stroke Unit bed 12, side room (previous MRSA). Deep clean required post-discharge. Patient requires NIL BY MOUTH status until SALT assessment completed. Obs stable: BP 135/82, HR 72, afebrile. Ward clerk to notify bed management once patient leaves ward. GP summary to be completed and sent with transfer documentation.",
4
+
"Mr. Thompson's discharge from the Stroke Unit to Cedar House Rehabilitation Centre has been approved for tomorrow morning contingent on three requirements: the pharmacy must prepare his modified-release Baclofen 20mg and new anticoagulation medication pack (Apixaban 5mg) for collection by his daughter before 9am, hospital transport must be confirmed for an 11am pickup (bariatric ambulance and two crew members required due to hoisting needs), and the rehabilitation centre must receive his completed medication administration record by fax before accepting admission. The ward needs to arrange collection of his pressure-relieving mattress from the equipment library for transport with him, and his current hospital bed must be deep-cleaned after discharge due to previous MRSA status. Prior to discharge, the Stroke Early Supported Discharge team must complete their initial assessment at 8:30am, and his daughter needs to bring appropriate clothing as hospital gowns cannot be taken to the rehabilitation facility. The patient requires two additional outpatient appointments to be booked: a swallowing assessment with Speech and Language Therapy within 7 days, and a follow-up with the Stroke Consultant in 4 weeks. The social worker must confirm that the family has received the rehabilitation centre's payment schedule and admission documentation. Additionally, the ward must ensure his discharge summary is sent to both his GP and the rehabilitation centre, with a copy of his anticoagulation monitoring booklet and most recent INR results."
0 commit comments