Skip to content

Commit

Permalink
code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed Jun 21, 2023
1 parent b369ddc commit 0bf629e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/fhir-server-import.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env python3
"""Util to upload all given, or available FHIR resources to the given FHIR server"""
import requests

base_url = "https://hapi.128.208.230.197.nip.io/fhir"
url = f"{base_url}/$import"
# {fileNumber}.{ResourceType}.ndjson
payload = {
"inputFormat": "application/fhir+ndjson",
# URI for tracking this set of imported data throughout its lifecycle.
# URI for tracking this set of imported data throughout its lifecycle.
# MAY be used to specify a FHIR endpoint that can by the importing system when matching references to previously imported data.
"inputSource": base_url,
"storageDetail": { "type": "https" },
Expand Down Expand Up @@ -75,10 +76,9 @@
}



headers = {
'Accept': 'application/fhir+json',
'Prefer': 'respond-async',
"Accept": "application/fhir+json",
"Prefer": "respond-async",
#'Content-Type': 'application/json',
#'Authorization': 'Bearer <Auth Token>'
}
Expand Down

0 comments on commit 0bf629e

Please sign in to comment.