Key elements

cd
This is the key element used to code information.
Five attributes are available:
  • S is mandatory and specifies the reference table. For some element, the reference table is forced (urgency code for example). For other elements, a list of different tables can be used (item for example).
  • SV is mandatory and specifies the version of the reference table.
  • SL is mandatory when S='LOCAL', to specify a local reference table.
  • DN is mandatory when S='LOCAL', to transfer the meaning of the code.
  • L is mandatory when DN is used, to specify the language of the meaning.
Example of national code: <urgency><cd S="CD-URGENCY" SV="1.0">asap</cd></urgency>
Example of local code: <urgency><cd S="LOCAL" SL="MyOwnSystem" SV="3.2" DN="dans la minute" L="fr">mm</cd></urgency>

id
This element is used to uniquely identify key elements like kmehrmessage, folder, patient, hcparty, transaction, heading and item. It can also be used to specify any unique identifier.
Three attributes are available:
  • S is mandatory and specifies the identifying system.
  • SV is mandatory and specifies the version of the identifying system.
  • SL is mandatory when S='LOCAL', to specify a local identifying system.
Example of national unique identifier: <patient><id S="ID-PATIENT" SV="1.0">62031012311</id></patient>
Example of local unique identifier: <patient><id S="LOCAL" SL="MyOwnSystem" SV="3.2">CPO12378903</id></patient>

lnk
This element is used to establish a link between:
its parent Kmehr element* AND
another Kmehr* element
OR
a file (image, word, ...)
that can be
external (within another file on the web)
OR
within the same Kmehr message
OR
within the lnk element itself (autolink !)
* we refer here to elements that can have an official ID = a kmehrmessage, a folder, a transaction, a heading, an item or a content

It can be used to establish relationships like:

  • replacement of an element by a new version (TYPE='isanewversionof')
  • response to a request (TYPE='isareplyto')
  • documentation through attachments (TYPE='isdocumentedby')
  • medical structural relationship (TYPE='isaconsequenceof')

It has five attributes:
  • TYPE: is the type of relationship using a value of the CD-LNK scheme
  • MEDIATYPE: media type as a value of the CD-MEDIATYPE scheme
  • SIZE: in bytes
  • URL: contains the url of the targeted element (if empty, the target is encapsulated in the content of the lnk element itself). The URL must be specified using the XPATH specification. A few examples:
    • URL="http://www.chu-charleroi.be/sim/12344556788.jpg" to refer to an image stored on a web server
    • URL="http://www.s3.org/dmg12344556788.xml/kmehrmessage/../folder[id='1']/transaction[id='1']/item[id='7']" to refer to an element within an external file
    • URL="../item[id='8']" to refer to an element within the same XML file