/**
 * @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 * as tslib_1 from "tslib";
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { AbstractDetailsComponent } from '../../../../shared/abstracts/details/abstract-details/abstract-details.component';
var MedicationRequestDetailsComponent = /** @class */ (function (_super) {
    tslib_1.__extends(MedicationRequestDetailsComponent, _super);
    function MedicationRequestDetailsComponent() {
        var _this = _super.call(this) || this;
        _this.callSave = new EventEmitter();
        _this.callUpdate = new EventEmitter();
        return _this;
    }
    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 = function () { return []; };
    MedicationRequestDetailsComponent.propDecorators = {
        units: [{ type: Input }],
        periods: [{ type: Input }],
        days: [{ type: Input }],
        callSave: [{ type: Output }],
        callUpdate: [{ type: Output }]
    };
    return MedicationRequestDetailsComponent;
}(AbstractDetailsComponent));
export { MedicationRequestDetailsComponent };
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkaWNhdGlvbi1yZXF1ZXN0LWRldGFpbHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGluY2xvdWRlZC9pb25pYzQtaW5jbG91ZGVkLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9maGlyL21lZGljYXRpb24vcmVxdWVzdC9kZXRhaWxzL21lZGljYXRpb24tcmVxdWVzdC1kZXRhaWxzLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXZFLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGtGQUFrRixDQUFDO0FBRTVIO0lBS3VELDZEQUE0QztJQVFqRztRQUFBLFlBQWdCLGlCQUFPLFNBQ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