<commit_before>"use strict";

var whenGiven = [{
    property: 'low',
    path: 'start',
    type: 'date'
}, {
    property: 'high',
    path: 'end',
    type: 'date'
}];

var quantity = [{
    property: 'value',
    path: 'value'
}, {
    property: 'unit',
    path: 'units'
}];

var dosage = [{
    property: 'route',
    path: 'route.coding.0',
    type: 'concept'
}, {
    property: 'site',
    path: 'site.coding.0',
    type: 'concept'
}, {
    property: 'dose',
    path: 'quantity',
    type: 'template',
    typeParam: quantity
}];

var repeat = [{
    property: 'period.value',
    path: 'duration'
}, {
    property: 'period.unit',
    path: 'units'
}, {
    property: 'frequency',
    type: 'constant',
    typeParam: true
}];

var prescription = [{
    property: 'administration.interval',
    path: 'dosageInstruction.0.timingSchedule.repeat',
    type: 'template',
    typeParam: repeat
}];

exports.template = [{
    property: 'date_time',
    path: 'whenGiven',
    type: 'template',
    typeParam: whenGiven
}, {
    property: 'status',
    type: 'constant',
    typeParam: 'Completed'
}, {
    property: 'administration',
    path: 'dosage.0',
    type: 'template',
    typeParam: dosage
}, {
    property: 'precondition.value',
    path: 'dosage.0.asNeededCodeableConcept.coding.0',
    type: 'concept'
}, {
    property: 'product.product',
    path: 'medication.reference.code.coding.0',
    type: 'concept'
}, {
    path: 'prescription.reference',
    type: 'template',
    typeParam: prescription
}];

exports.type = 'medication';
<commit_msg>generate sig form administered medications<commit_after>"use strict";

var whenGiven = [{
    property: 'low',
    path: 'start',
    type: 'date'
}, {
    property: 'high',
    path: 'end',
    type: 'date'
}];

var quantity = [{
    property: 'value',
    path: 'value'
}, {
    property: 'unit',
    path: 'units'
}];

var dosage = [{
    property: 'route',
    path: 'route.coding.0',
    type: 'concept'
}, {
    property: 'site',
    path: 'site.coding.0',
    type: 'concept'
}, {
    property: 'dose',
    path: 'quantity',
    type: 'template',
    typeParam: quantity
}];

var repeat = [{
    property: 'period.value',
    path: 'duration'
}, {
    property: 'period.unit',
    path: 'units'
}, {
    property: 'frequency',
    type: 'constant',
    typeParam: true
}];

var prescription = [{
    property: 'administration.interval',
    path: 'dosageInstruction.0.timingSchedule.repeat',
    type: 'template',
    typeParam: repeat
}, {
    property: 'sig',
    path: 'text.div'
}];

exports.template = [{
    property: 'date_time',
    path: 'whenGiven',
    type: 'template',
    typeParam: whenGiven
}, {
    property: 'status',
    type: 'constant',
    typeParam: 'Completed'
}, {
    property: 'administration',
    path: 'dosage.0',
    type: 'template',
    typeParam: dosage
}, {
    property: 'precondition.value',
    path: 'dosage.0.asNeededCodeableConcept.coding.0',
    type: 'concept'
}, {
    property: 'product.product',
    path: 'medication.reference.code.coding.0',
    type: 'concept'
}, {
    path: 'prescription.reference',
    type: 'template',
    typeParam: prescription
}];

exports.type = 'medication';

{'fraction_non_alphanumeric': 0.17674563591022444, 'fraction_numerical': 0.004364089775561097, 'mean_word_length': 2.9813895781637716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '963110', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1077, 'n_words': 242}