Skip to content

Instantly share code, notes, and snippets.

View aviars's full-sized avatar

Alan Viars aviars

  • Videntity
  • USA, Planet Earth
  • 15:41 (UTC -12:00)
View GitHub Profile
@aviars
aviars / gist:872623
Created March 16, 2011 15:07
foee4 k-dog
from django.db import models
from django.utils.translation import ugettext as _, ugettext_lazy as __
class FeatureType(models.Model):
class Meta:
verbose_name = __("FeatureType")
verbose_name_plural = __("FeatureTypes")
ordering = ('name',)
def save(self, **kwargs):
#Create/Update a RESTCAT tx
extra_fields = jsonify_extra_fields(self)
if not self.idtransaction:
from ..tracker.models import idTransaction
self.idtransaction=idTransaction.objects.create(subject=self.patient,
sender=self.worker,
receiver=self.worker,
extra_fields=jsonify_extra_fields(self))
super(Linkage, self).save(**kwargs)
from settings import *
BASE_DIR = os.path.join( os.path.dirname( __file__ ), '..' )
DBPATH=os.path.join(BASE_DIR, 'gemini.db')
DATABASES = {
'duncan': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'duncan',
'USER': '',
@aviars
aviars / deliverables.md
Created December 17, 2015 21:55
Deliverable List (DRAFT)

Software Deliverables:

  • Create prototype FHIR-based API updating and searching NPI Provider data.
  • The API shall incorporate oAuth2 for authentication
  • Create are-usable library/API for validating the FHIR Practitioner and Organization Resource
  • Create a functioning prototype for Medical license verfication
  • Create a functioning prototype for QHP "plan providers" directory. Base off same architecture.

Documentaion Deliverables:

{
"manifest": [{
"client_name": "CareEvolution",
"redirect_uris": [
"https://myfhr.careevolution.com/cfhrprovideraccounts/redirecttarget",
"https://test-consumers-release-5-20-x.careevolution.com/WebClientTest.Adapter1.WebClient/cfhrprovideraccounts/redirecttarget"
],
"grant_types": [
"authorization_code",
"implicit",
@aviars
aviars / pharmacy.md
Last active April 24, 2018 18:31
Pharmacy EOB

Anatomy of BlueButton API FHIR ExplanationOfBenefit Response

BlueButton API FHIR responses contain these FHIR Resource types.

  • Patient
  • Coverage
  • ExplanationOfBenefit (EOB)
...
"sequence": 2,
"revenue": {
"coding": [{
"system": "https://bluebutton.cms.gov/resources/variables/rev_cntr",
"code": "0250",
"display": "Pharmacy-general classification"
}]
},
"locationAddress": {

Keybase proof

I hereby claim:

  • I am aviars on github.
  • I am aviars (https://keybase.io/aviars) on keybase.
  • I have a public key ASAIVtQet7ER1tVOAT-CQKgoklyjfFUj94AwBI7F0dm6Awo

To claim this, I am signing this object:

from django.contrib.auth import get_user_model
from .models import UserProfile, Address
from collections import OrderedDict
class ProfileClaimProvider():
def __init__(user):
claims_od = OrderedDict()
@aviars
aviars / patient-search-request-body.json
Created February 4, 2019 15:46
example patient search body
'aud': 'kSFVM8R7IATmzj8y7tOC99XFfmjJJ3TISSKiIlWp',
'auth_time': 1549289740.153844,
'email': '[email protected]',
'exp': 1549298609.7416735,
'iat': 1549295009.7416809,
'iss': 'https://alpha.verifymyidentity.com',
'nonce': 'REizxdkeo2QAxil4cKN0MfSq9cqvIvES8GzDYYBwW3MiEdsq9nUcZi5C1RC72UQ2',
'sub': '304685313797962',
'aal': '2',