Skip to content

Instantly share code, notes, and snippets.

View marianoqueirel's full-sized avatar
🏠
Working from home

Mariano Queirel marianoqueirel

🏠
Working from home
View GitHub Profile
export class LoginComponent {
/*@ngInject*/
constructor(Auth, $state) {
this.Auth = Auth;
this.$state = $state;
this.errors = {login: ''};
}
login(form) {
'use strict';
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import routes from './login.routes';
export class LoginComponent {
/*@ngInject*/
constructor(Auth, $state) {
// ; or not after (mousedOver = true)
$list.bind('mouseover', () => {
scope.$apply(() => { scope.mousedOver = true });
});
$list.bind('mouseover', () => {
scope.$apply(() => { scope.mousedOver = true; });
});
'use strict';
import angular from 'angular';
export default angular.module('directive.typeahead', [])
//TODO Check This
.directive('typeahead', ["$timeout", $timeout => {
return {
restrict: 'E',
transclude: true,
AFTER
<input type="button" class="button is-medium is-danger"
ng-click="$ctrl.reset(practitionerForm); practitionerForm.$setPristine()"
value="{{'practitioners.form.button.reset' | translate}}"
/>
BEFORE
<input type="button" class="button is-medium is-danger"
// client/components/translate/es-AR/answers.js
'use strict';
export default {
yes: 'Si',
no: 'No',
comments: 'Comentarios',
frequency: {
frequency: 'Frecuencia',
daily: 'Diariamente',
// client/components/translate/es-AR/patients/form.js
lifestyle: {
lifestyle: 'Estilo de Vida',
smoke: {
smoke: '¿Es Fumador?',
past: '¿Fumó alguna vez?'
},
alcohol: {
alcohol: '¿Bebe Alcohol frecuentemente?',
past: '¿Bebió Alcohol con frecuencia alguna vez?'
'use strict';
import mongoose from 'mongoose';
/**
* registered | The existence of the report is registered, but there is nothing yet available.
* -----------------+----------------------------------------------------------------------------------------
* partial | This is a partial (e.g. initial, interim or preliminary) report: data in the report may
* | be incomplete or unverified.
* -----------------+----------------------------------------------------------------------------------------
* final | The report is complete and verified by an authorized person.
'use strict';
import mongoose from 'mongoose';
const STATUS = ['registered', 'partial', 'final', 'corrected', 'appended', 'cancelled', 'entered-in-error'];
const REQUEST = ['DiagnosticOrder', 'ProcedureRequest'];
/*
* AU -> Audiology | NRS -> Nursing Service Measures
'use strict';
import mongoose from 'mongoose';
const STATUS = ['registered', 'partial', 'final', 'corrected', 'appended', 'cancelled', 'entered-in-error'];
const REQUEST = ['DiagnosticOrder', 'ProcedureRequest'];
/*
* AU -> Audiology | NRS -> Nursing Service Measures