def test_questionnaire_parse(self): q = self.add_questionnaire('epiclife') ref = { 'reference': 'api/questionnaire/{0.value}?system={0.system}'.format( q.identifiers[0])} parsed = Reference.parse(ref) assert q == parsed
def test_questionnaire_parse(self): q = self.add_questionnaire('epiclife') ref = { 'reference': 'api/questionnaire/{0.value}?system={0.system}'.format( q.identifiers[0]) } parsed = Reference.parse(ref) assert q == parsed
def test_practitioner_parse(self): p = self.add_practitioner() ref = {'reference': 'api/practitioner/12345?system={}'.format(US_NPI)} parsed = Reference.parse(ref) assert p == parsed
def test_intervention_parse(self): ref = {'reference': 'api/intervention/self_management'} i = Reference.parse(ref) assert i.name == 'self_management'
def test_org_w_identifier_parse(self): o = self.prep_org_w_identifier() ref = {'reference': 'api/organization/123-45?system={}'.format(US_NPI)} parsed = Reference.parse(ref) assert o == parsed
def test_practitioner_parse(self): p = self.add_practitioner() ref = {'reference': 'api/practitioner/12345?system={}'.format(US_NPI)} parsed = Reference.parse(ref) assert p == parsed
def test_intervention_parse(self): ref = {'reference': 'api/intervention/self_management'} i = Reference.parse(ref) assert i.name == 'self_management'
def test_org_w_identifier_parse(self): o = self.prep_org_w_identifier() ref = {'reference': 'api/organization/123-45?system={}'.format(US_NPI)} parsed = Reference.parse(ref) assert o == parsed
def test_intervention_parse(self): ref = {'reference': 'api/intervention/self_management'} i = Reference.parse(ref) self.assertEqual(i.name, 'self_management')