TFML.org >
Publishing a Case to MyPACS.net
[ Also see: Using TFML ]
MyPACS provides a simple form-based service for publishing
teaching file cases and images wrapped in a zip archive. The form can be accessed interactively
through a web browser, or programmatically via a client application.
To import a case and images into MyPACS:
- Create
a MyPACS account if you do not already have one, using the signup form:
http://www.mypacs.net/cgi-bin/dev/repos/mp_repo/signup.pl
- Create
a Teaching File Modeling Language (TFML) document describing your case
(see http://tfml.org/schema.html). You can create this by hand using a
text editor, or generate it programmatically. If you will be uploading the case from a client application,
the TFML document should contain an add_case command specifying the
username and password of the case owner.
- Create
a zip archive containing the TFML document and the images to be
uploaded. You may do this
interactively using a utility such as WinZip (http://www.winzip.com/), or
programmatically using a module such as Archive::Zip (http://bike-nomad.com/perl/).
- Upload
the zip file to the case import form:
http://www.mypacs.net/cgi-bin/dev/repos/mp_repo/nph-case-import-xml.pl.
To publish a case interactively through a web browser, click Browse
to locate and select the zip file, and then click Upload. MyPACS will indicate progress while it
imports cases and uploads their images, and it will finish by providing
you with links to all cases that have been imported.
To publish a case programmatically, use the POST method to upload
the zip file to the above URL.
Post the zip file to a file upload field called ‘tfml_file’,
and set the submit parameter Upload = 1.