|
How 2 Be A Diagnosis Code Plugin |
|
A diagnosis code plugin provides one or more diagnostic code systems to the user, such as ICD-10 or DSM-V or ICPC-2.
You might want to use elexis-eigendiagnosen as a template for your own plugin.
a diagnosis code plugin should
- define a class that extends ch.elexis.data.PersistentObject and implements ch.elexis.data.IDiagnose. Objects of this class will represent individual codes out of a codesystem managed by this plugin.
- define a class that extends ch.elexis.data.PersistentObjectFactory. This class allows Elexis to store and retrieve objects of classes managed by this plugin "by reference".
- (Optionally) define a class that extends ch.elexis.util.ImporterPage. An Object of this class will be used to import the code elements from an external source.
- define a class that extends
ch.elexis.views.codesystems.CodeSelectorFactory. This class will be
used to let the user select a diagnosis out of this plugin's list of codes.
- define a class that implements ch.elexis.views.IDetailDisplay. An
Object of this class will be used to show the user detailed information
of a selected code.
- connect to the extension points
ch.elexis.PersistentReference. Use your PersistentObjectFactory as "Class" for this point.
- connect to the extension point ch.elexis.Diagnosecode.
- "ElementFactory" is (again) your PersistentObjectFactory class
- "CodeDetailDisplay" is your IDetailDisplay
- "CodeSelectorFactory" is your CodeSelectorFactory
- "ImporterClass" is, well, your ImporterPage.
... and you're done.
|