import { Attribute } from '@arkhn/fhir.ts' ; import { IAction , ICredential , Resource } from 'types' ; export const updateSelectedSource = ( source ) : IAction => { return { type : 'UPDATE_SOURCE' , payload : source } ; } ; export const changeSelectedSource = ( source ) : IAction => { return { type : 'CHANGE_SOURCE' , payload : source } ; } ; export const deselectSource = ( ) : IAction => { return { type : 'DESELECT_SOURCE' } ; } ; export const updateSelectedResource = ( resource ) : IAction => { return { type : 'UPDATE_RESOURCE' , payload : { resource } } ; } ; export const changeSelectedResource = ( resource ) : IAction => { return { type : 'CHANGE_RESOURCE' , payload : { resource } } ; } ; export const deselectResource = ( ) : IAction => { return { type : 'DESELECT_RESOURCE' } ; } ; export const updateFhirAttribute = ( attribute ? ) : IAction => { return { type : 'UPDATE_ATTRIBUTE' , payload : { attribute } } ; } ;