Not much to display in video so here is basic recipe -
- Add mdsupport/mdpub repo as a dependency and let composer bring in command-line utilities from WordPress repo.
- Add a JSON column to codes table using codes_update.sql.
- Use your account to download latest codes from loinc.org.
- Add LOINC as code_type in EMR.
- Run LOINC import tool in console with --help to see expected parameters with defaults.
php /var/www/html/emr7d/vendor/mdsupport/mdpub/oemods/cli/import_loinc.php --help
…
Options
–zipIn, -z Set the staged Loinc package archive - Loinc_.zip [default: /home/emrsys/Loinc_2.75.zip]
–site, -s Set the EMR site [default: default]
- Import the downloaded codes by overriding the default filename used by -z option
php /var/www/html/emr7d/vendor/mdsupport/mdpub/oemods/cli/import_loinc.php -z /data/emr/Loinc_2.76.zip
This will bring in a zillion (well 101633 to be exact for version 2.76) LOINC codes used for various lab tests as well as other FHIR forms / panels.