UNPKG

infect-frontend

Version:
103 lines 1.96 kB
export default function() { return [{ entityType: 'antibiotic' , config: { name: { translation: 'Name' , valueTranslations: (name) => name } , iv: { translation: 'Intravenous' , valueTranslations: [{ value: true , translation: 'Intravenous' }, { value: false , translation: 'Not intravenous' }] } , po: { translation: 'Per Os' , valueTranslations: [{ value: true , translation: 'Per os' }, { value: false , translation: 'Not per os' }] } } }, { entityType: 'region' , config: { // The property we need is id id: { translation: 'Name' // Get name from the whole entity , valueTranslations: (name, entity) => entity.name } } }, { entityType: 'ageGroup' , config: { // The property we need is id id: { translation: 'Name' // Get name from the whole entity , valueTranslations: (name, entity) => { return entity.identifier.replace('-', '–').replace('>=', '≥'); } } } }, { entityType: 'substanceClass' , config: { name: { translation: 'Name' , valueTranslations: (name) => name } } }, { entityType: 'bacterium' , config: { name: { translation: 'Name' , valueTranslations: (name) => name } , gram: { translation: 'Gram' , valueTranslations: [{ value: true , translation: 'Gram+' }, { value: false , translation: 'Gram-' }] } , aerobic: { translation: 'Aerobic' , valueTranslations: [{ value: true , translation: 'Aerobic' }, { value: false , translation: 'Not aerobic' }] } , anaerobic: { translation: 'Anaerobic' , valueTranslations: [{ value: true , translation: 'Anaerobic' }, { value: false , translation: 'Not anaerobic' }] } , shape: { translation: 'Shape' , valueTranslations: (shape) => shape } } }]; };