The model catalogue file format is used to transfer metadata between different MDR instances, and as a data serialization format.
The files are named with a suffix of .mc
An example file would be represented thus:
classification(name: 'OxfordSoftwareEngineering', id: 'http://www.softeng.ox.ac.uk') {
model(name: 'Subject') {
dataElement(name: 'Name') {
description 'Name for subject matter for set of courses'
valueDomain(name: 'Name') {
dataType(name: 'String')
}
ext 'Usage', 'Mandatory'
ext 'Min Occurs', '1'
ext 'Max Occurs', '1'
}
dataElement(name: 'Description') {
description 'Description of subject matter'
valueDomain(name: 'Description') {
}
ext 'Usage', 'Mandatory'
ext 'Min Occurs', '1'
ext 'Max Occurs', '1'
ext 'Data Item Number', '2'
}
dataElement(name: 'Level') {
description 'Course level'
valueDomain(name: 'Level') {
}
ext 'Usage', 'Mandatory'
ext 'Min Occurs', '1'
ext 'Max Occurs', '1'
ext 'Data Item Number', '3'
}
dataElement(name: 'subjectCode') {
description 'unique id for subject'
valueDomain(name: 'subjectCode') {
dataType(name: 'Integer')
}
ext 'Usage', 'Mandatory'
ext 'Min Occurs', '1'
ext 'Max Occurs', '1'
ext 'Data Item Number', '4'
}