/**
 * @fileoverview added by tsickle
 * Generated from: lib/fhir/medication/request/details/medication-request-details.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { AbstractDetailsComponent } from '../../../../shared/abstracts/details/abstract-details/abstract-details.component';
export class MedicationRequestDetailsComponent extends AbstractDetailsComponent {
    constructor() {
        super();
        this.callSave = new EventEmitter();
        this.callUpdate = new EventEmitter();
    }
}
MedicationRequestDetailsComponent.decorators = [
    { type: Component, args: [{
                selector: 'inc-medication-request-details',
                template: "<ion-grid fixed class=\"ion-padding\">\r\n  <ion-row>\r\n    <ion-col>\r\n      <ion-item lines=\"none\" class=\"ion-no-padding\">\r\n        <ion-badge color=\"light\" slot=\"start\" *ngIf=\"inData.basedOn && inData.basedOn[0]\" class=\"ion-padding\"\r\n          style=\"min-width: 100px;\">\r\n          {{inData.basedOn[0].display | uppercase  | translate}}\r\n        </ion-badge>\r\n        <ion-label *ngIf=\"inData.recorder\">\r\n          <ion-text color=\"primary\" *ngIf=\"inData.authoredOn\">\r\n            <p>{{inData.authoredOn | date:'yyyy.MM.dd'}}</p>\r\n          </ion-text>\r\n          {{inData.recorder.display}}\r\n        </ion-label>\r\n        <ion-buttons slot=\"end\">\r\n          <ion-button (click)=\"more()\">\r\n            <ion-icon name=\"more\"></ion-icon>\r\n          </ion-button>\r\n        </ion-buttons>\r\n      </ion-item>\r\n    </ion-col>\r\n  </ion-row>\r\n  <ion-row *ngIf=\"inData.dosageInstruction && inData.dosageInstruction[0] && inData.dosageInstruction[0].text\">\r\n    <ion-col>\r\n      {{inData.dosageInstruction[0].text}}\r\n    </ion-col>\r\n  </ion-row>\r\n</ion-grid>\r\n<inc-dosage-add [inData]=\"inData.dosageInstruction[0]\" [name]=\"inData.medicationReference.display\"\r\n  (callSave)=\"callSave.emit($event)\" (callUpdate)=\"callUpdate.emit($event)\" [units]=\"units\" [periods]=\"periods\"\r\n  [days]=\"days\">\r\n</inc-dosage-add>",
                styles: [""]
            }] }
];
/** @nocollapse */
MedicationRequestDetailsComponent.ctorParameters = () => [];
MedicationRequestDetailsComponent.propDecorators = {
    units: [{ type: Input }],
    periods: [{ type: Input }],
    days: [{ type: Input }],
    callSave: [{ type: Output }],
    callUpdate: [{ type: Output }]
};
if (false) {
    /** @type {?} */
    MedicationRequestDetailsComponent.prototype.units;
    /** @type {?} */
    MedicationRequestDetailsComponent.prototype.periods;
    /** @type {?} */
    MedicationRequestDetailsComponent.prototype.days;
    /** @type {?} */
    MedicationRequestDetailsComponent.prototype.callSave;
    /** @type {?} */
    MedicationRequestDetailsComponent.prototype.callUpdate;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkaWNhdGlvbi1yZXF1ZXN0LWRldGFpbHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGluY2xvdWRlZC9pb25pYzQtaW5jbG91ZGVkLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9maGlyL21lZGljYXRpb24vcmVxdWVzdC9kZXRhaWxzL21lZGljYXRpb24tcmVxdWVzdC1kZXRhaWxzLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFdkUsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sa0ZBQWtGLENBQUM7QUFPNUgsTUFBTSxPQUFPLGlDQUFrQyxTQUFRLHdCQUE0QztJQVFqRztRQUFnQixLQUFLLEVBQUUsQ0FBQztRQUhkLGFBQVEsR0FBRyxJQUFJLFlBQVksRUFBVyxDQUFDO1FBQ3ZDLGVBQVUsR0FBRyxJQUFJLFlBQVksRUFBVyxDQUFDO0lBRTFCLENBQUM7OztZQWIzQixTQ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