DHIS2 DXF schema files

Hi,

I am looking at writing a DHIS2 import/export subsystem for a metadata registry I help administer and am having trouble finding the DHIS2/DXF schemas to make sure I am writing proper XML.

Can someone point me towards these?

Cheers,

Samuel Spencer

Aristotle Metadata Registry - Community Manager

https://github.com/aristotle-mdr/aristotle-metadata-registry

···

— Specificity is the soul of all good communication —
— When the game is over, the king and the pawn go into the same box —
Find out more about me: http://about.me/legostormtroopr

Hi Samuel,
We do not really maintain up-to-date schemas as such. The best resource which is available for a given version is the /api/schemas end point, which gives detailed information about each object.

In terms of the data format, you can have a look here (https://github.com/dhis2/dhis2-docs/tree/master/src/schemas/dxf_v2_schema). Maybe Bob can comment on whether these are actually still up to date.

Regards,

Jason

···

On Fri, Feb 26, 2016 at 10:22 AM, Samuel Spencer theodore.therone@gmail.com wrote:

Hi,

I am looking at writing a DHIS2 import/export subsystem for a metadata registry I help administer and am having trouble finding the DHIS2/DXF schemas to make sure I am writing proper XML.

Can someone point me towards these?

Cheers,

Samuel Spencer

Aristotle Metadata Registry - Community Manager

https://github.com/aristotle-mdr/aristotle-metadata-registry

— Specificity is the soul of all good communication —
— When the game is over, the king and the pawn go into the same box —
Find out more about me: http://about.me/legostormtroopr


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Maybe ADX would be relevant?

http://dhis2.github.io/dhis2-docs/2.21/en/developer/html/ch01s13.html
http://www.ihe.net/uploadedFiles/Documents/QRPH/IHE_QRPH_Suppl_ADX.pdf

Knut

···

On Fri, Feb 26, 2016 at 10:56 AM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Samuel,
We do not really maintain up-to-date schemas as such. The best resource which is available for a given version is the /api/schemas end point, which gives detailed information about each object.

In terms of the data format, you can have a look here (https://github.com/dhis2/dhis2-docs/tree/master/src/schemas/dxf_v2_schema). Maybe Bob can comment on whether these are actually still up to date.

Regards,

Jason


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

On Fri, Feb 26, 2016 at 10:22 AM, Samuel Spencer theodore.therone@gmail.com wrote:

Hi,

I am looking at writing a DHIS2 import/export subsystem for a metadata registry I help administer and am having trouble finding the DHIS2/DXF schemas to make sure I am writing proper XML.

Can someone point me towards these?

Cheers,

Samuel Spencer

Aristotle Metadata Registry - Community Manager

https://github.com/aristotle-mdr/aristotle-metadata-registry

— Specificity is the soul of all good communication —
— When the game is over, the king and the pawn go into the same box —
Find out more about me: http://about.me/legostormtroopr


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

We don’t follow or express schema for dxf. Particularly the metadata has been too dynamic. ( The link is very old and not maintained. )

Morten did introduce a schemas endpoint to the API (eg see https://play.dhis2.org/demo/api/schemas/dataElement) which provides the structure and types of the metadata objects. In theory (and practice) I guess one can generate xsd or relaxng schema from these resources. Whether it makes sense to generate schema or not might be another matter. There are two reasons it might not …

  1. its hard to use schema for eg jaxb code generation if the schema is moving too much

  2. recalling an earlier message from lars that the xml representation of metadata may be dropped sometime in the future in favour of concentrating on the json

···

On Fri, Feb 26, 2016 at 10:22 AM, Samuel Spencer theodore.therone@gmail.com wrote:

Hi,

I am looking at writing a DHIS2 import/export subsystem for a metadata registry I help administer and am having trouble finding the DHIS2/DXF schemas to make sure I am writing proper XML.

Can someone point me towards these?

Cheers,

Samuel Spencer

Aristotle Metadata Registry - Community Manager

https://github.com/aristotle-mdr/aristotle-metadata-registry

— Specificity is the soul of all good communication —
— When the game is over, the king and the pawn go into the same box —
Find out more about me: http://about.me/legostormtroopr


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Thanks for all the info, very useful! A few follow up question then.

In future DHIS is looking at JSON as the main import/export API format?

So if I wanted to be able to import metadata from another system in the long term, JSON is the way to go?

What is the best way to test the generated code is valid DHIS DXF?

I tried this page: https://play.dhis2.org/demo/dhis-web-importexport/dxf2MetaDataImport.action

And the upload form sent, but no new indicators/data elements were shown in the listing, but it didn’t give me an error either.

···

On 1 March 2016 at 01:02, Bob Jolliffe bobjolliffe@gmail.com wrote:

We don’t follow or express schema for dxf. Particularly the metadata has been too dynamic. ( The link is very old and not maintained. )

Morten did introduce a schemas endpoint to the API (eg see https://play.dhis2.org/demo/api/schemas/dataElement) which provides the structure and types of the metadata objects. In theory (and practice) I guess one can generate xsd or relaxng schema from these resources. Whether it makes sense to generate schema or not might be another matter. There are two reasons it might not …

  1. its hard to use schema for eg jaxb code generation if the schema is moving too much
  1. recalling an earlier message from lars that the xml representation of metadata may be dropped sometime in the future in favour of concentrating on the json

On 26 Feb 2016 11:22, “Jason Pickering” jason.p.pickering@gmail.com wrote:

Hi Samuel,
We do not really maintain up-to-date schemas as such. The best resource which is available for a given version is the /api/schemas end point, which gives detailed information about each object.

In terms of the data format, you can have a look here (https://github.com/dhis2/dhis2-docs/tree/master/src/schemas/dxf_v2_schema). Maybe Bob can comment on whether these are actually still up to date.

Regards,

Jason


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

— Specificity is the soul of all good communication —
— When the game is over, the king and the pawn go into the same box —
Find out more about me: http://about.me/legostormtroopr

On Fri, Feb 26, 2016 at 10:22 AM, Samuel Spencer theodore.therone@gmail.com wrote:

Hi,

I am looking at writing a DHIS2 import/export subsystem for a metadata registry I help administer and am having trouble finding the DHIS2/DXF schemas to make sure I am writing proper XML.

Can someone point me towards these?

Cheers,

Samuel Spencer

Aristotle Metadata Registry - Community Manager

https://github.com/aristotle-mdr/aristotle-metadata-registry

— Specificity is the soul of all good communication —
— When the game is over, the king and the pawn go into the same box —
Find out more about me: http://about.me/legostormtroopr


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049