Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import measures through UI gives error #149

Open
dabimahesh opened this issue Sep 10, 2018 · 5 comments
Open

Import measures through UI gives error #149

dabimahesh opened this issue Sep 10, 2018 · 5 comments

Comments

@dabimahesh
Copy link

I am trying to import a measure by using admin/measures pagein PopHealth. I am using HQMF file (examples attached here
CMS22v5.xml.txt
CMS22v5.xml.txt

d here).

  • It is giving error Error importing measure
    unknown document type

Is this correct way and format of attaching the file?

MD

@petercyli
Copy link
Collaborator

petercyli commented Sep 10, 2018 via email

@lrasmus
Copy link

lrasmus commented Sep 11, 2018

@dabimahesh - when we wanted to import measures, I remember having to create my own bundle. I ran into similar errors trying to import XML files directly. The bundle was a zip file which contained the measure logic in a JSON format, and also had the value sets. I used the Bonnie tool to create the measure JSON files. I know Bonnie has been updated to work with CQL, so the newest version may no longer work with HQMF XML files. I was using an older version (~1.3), but I think you could use the latest v1.X branch: https://github.com/projecttacoma/bonnie/tree/v1.6.12

Once I had the measures loaded into Bonnie, I would do the following to build a bundle:
a. Export the bundle from Bonnie
b. Extract the zip file
c. Edit the bundle.json to have the right version and description
d. Remove the test patients from the directory and bundle.json
e. Zip up the bundle. From the directory where the bundle files live (not a level above) run: zip -r ../my-bundle-1.0.0.zip .

@petercyli
Copy link
Collaborator

@lrasmus - Have you added just one single custom measure to the existing measures that are already loaded? Or is it always been just import a new custom measure bundle?

@lrasmus
Copy link

lrasmus commented Sep 11, 2018

@petercyli - it was always an import of a new custom measure bundle. I did this because I ran into a problem with the individual load once, and already had a process in place to replace the bundle so I kept doing it that way (I know, that's lazy, and I should have actually offered a fix...)

I had a chance to try this with the files @dabimahesh posted. I actually get an error about failing to load the valueset, instead of "unknown document type".

@dabimahesh
Copy link
Author

dabimahesh commented Sep 11, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants