$expand with filter example

Example of connecting FHIR's /ValueSet/$expand with filter parameter to Typeahead (ui.bootstrap.typeahead) from http://angular-ui.github.com/bootstrap/

In this example the ValueSet is all descendants of the SNOMED CT root concept (138875005). This ValueSet is implicitly defined and has the URI http://snomed.info/sct?fhir_vs=isa/138875005. As a consequence, all inactive codes are excluded (since they have no parents).

Because the ValueSet includes codes from mutiple hierarchies (which would be unusual in a clinical setting), we extract and display the semantic tag to help disambiguate otherwise similar codes. For example, try searching for cataract.

{{loading && 'Loading...' || 'Selection:'}} {{result | json}}