Skip to content

Instantly share code, notes, and snippets.

View WiktorNowikow's full-sized avatar

WiktorNowikow

  • Poland
View GitHub Profile
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
An unhandled exception has occurred while executing the request.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Health.Fhir.SqlServer.Features.Storage.SqlServerFhirModel.TryGetResourceTypeId(String resourceTypeName, Int16& id) in C:\Users\Victor\source\repos\fhir-server\src\Microsoft.Health.Fhir.SqlServer\Features\Storage\SqlServerFhirModel.cs:line 105
at Microsoft.Health.Fhir.SqlServer.Features.Search.Expressions.Visitors.QueryGenerators.ResourceTypeIdParameterQueryGenerator.VisitString(StringExpression expression, SearchParameterQueryGeneratorContext context) in C:\Users\Victor\source\repos\fhir-server\src\Microsoft.Health.Fhir.SqlServer\Features\Search\Expressions\Visitors\QueryGenerators\ResourceTypeIdParameterQueryGenerator.cs:line 17
at Microsoft.Health.Fhir.Core.Features.Search.Expressions.StringExpression.AcceptVisitor[TContext,TOutput](IExpres
<form [formGroup]="userform" class="pvalidate">
<div class="p-col-4">
<label for="active"> {{ 'Status' | translate }}*</label>
</div>
<div class="p-col-8">
<div class="p-col-8">
<p-dropdown
[options]="(glosItemStatuses$ | async)"
[showClear]="true"
[style]="{'width':'100%'}"
public loadGlosItemStatuses():Observable<void>{
return this.commonLocalGlossariesClient
.getGlosItemStatuses()
.pipe(map((result:DictionaryItem[])=>{
this.state.setGlosItemStatuses(result.map(p => ({label: p.key, value: p.value})));
let glosItemStatusesForTable=[];
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { MessageService} from 'primeng/api';
import { ObjectOperations } from 'app/Infrastructure/object-operations';
import { FormBuilder, FormControl, Validators, FormGroup } from '@angular/forms';
import * as _ from 'lodash';
import { InstitutionWithoutInnDto, InstitutionsWithoutInnClient} from 'app/OpenMedis-api';
import { DatePipe } from '@angular/common';
import { BehaviorSubject, Subscription } from 'rxjs';
import { InstitutionCommonInfo } from 'app/models/InstitutionCommonInfo';
import { TranslateService } from '@ngx-translate/core';
@WiktorNowikow
WiktorNowikow / gist:977c03fdaafe7e379f008bedbcbabad5
Last active May 2, 2020 15:25
Generic request for MediatR
public class GetGlossaryListQuery<TEntity> :IRequest<IEnumerable>
where TEntity : BaseTableModel
{
public class GetGlossaryListQueryHandler : BaseEnsiHandler, IRequestHandler<GetGlossaryListQuery<TEntity>, IEnumerable>
{