Skip to content

Instantly share code, notes, and snippets.

@igrishaev
Last active April 3, 2018 11:12
Show Gist options
  • Select an option

  • Save igrishaev/3900858276ec930358060f17b785a1c5 to your computer and use it in GitHub Desktop.

Select an option

Save igrishaev/3900858276ec930358060f17b785a1c5 to your computer and use it in GitHub Desktop.
+ ;; (postfix :other_provider_identifier_type_code i)
+ ;; (postfix :other_provider_identifier_state i)
+ ;; (postfix :other_provider_identifier_issuer i)
+
+ ;; :identifier
+ ;; [{:use 1
+ ;; :type {:coding [{:system 1
+ ;; :code 2}]}
+ ;; :system 1
+ ;; :value (postfix :other_provider_identifier i)}]
+
+ ;; :qualification
+ ;; (vec (for [i (range 1 10)]
+ ;; {:$type :when
+ ;; :column (postfix :provider_license_number i)
+ ;; :expression {:identifier [{:system "http://fhir.us/us-license"
+ ;; :value (postfix :provider_license_number i)}]
+ ;; :code {:coding [{:system "http://nucc.org/provider-taxonomy"
+ (vec
+ (for [i (range 1 15)]
+ (let [params {:state (postfix :provider_license_number_state_code i)}])
+
+
+ {:code {:coding [{:system "http://npiregistry.cms.hhs.gov/healthcare_provider_taxonomy_code"
+ :code (postfix :healthcare_provider_taxonomy_code i)}]}
+
+ :identifier [{:system "http://npiregistry.cms.hhs.gov/provider_license_number?state=IN"
+ :value (postfix :provider_license_number i)}]}
+
+ ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment