Data Models
CcdData
Bases: BaseModel
Data model for CCD (Continuity of Care Document) that can be converted to CDA.
ATTRIBUTE | DESCRIPTION |
---|---|
concepts |
Container for medical concepts (problems, allergies, medications) extracted from the document. Defaults to empty ConceptLists.
TYPE:
|
note |
The clinical note text, either as a string or dictionary of sections. Defaults to None.
TYPE:
|
cda_xml |
The raw CDA XML string representation of the document. Defaults to None.
TYPE:
|
Source code in healthchain/models/data/ccddata.py
CdsFhirData
Bases: BaseModel
Data model for CDS FHIR data, matching the expected fields in CDSRequests.
ATTRIBUTE | DESCRIPTION |
---|---|
context |
A dictionary containing contextual information for the CDS request.
TYPE:
|
prefetch |
A Bundle object containing prefetched FHIR resources.
TYPE:
|
METHOD | DESCRIPTION |
---|---|
create |
Dict, prefetch: Dict): Class method to create a CdsFhirData instance. |
model_dump |
Returns a dictionary representation of the model. |
model_dump_json |
Returns a JSON string representation of the model. |
model_dump_prefetch |
Returns a dictionary representation of the prefetch Bundle. |
Source code in healthchain/models/data/cdsfhirdata.py
AllergyConcept
Bases: Concept
Contains allergy specific fields
Defaults allergy type to propensity to adverse reactions in SNOMED CT
Source code in healthchain/models/data/concept.py
Concept
Bases: BaseModel
A more lenient, system agnostic representation of a concept e.g. problems, medications, allergies that can be converted to CDA or FHIR
Source code in healthchain/models/data/concept.py
ConceptLists
Bases: BaseModel
Container for lists of medical concepts extracted from text.
Source code in healthchain/models/data/concept.py
DataType
MedicationConcept
Bases: Concept
Contains medication specific fields
Source code in healthchain/models/data/concept.py
ProblemConcept
Bases: Concept
Contains problem/condition specific fields