Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
p2 committed Sep 9, 2015
1 parent a4d241a commit 8287b5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,11 @@ smart.authorize() { patient, error in
// report error
}
else {
var meds = [MedicationPrescription]()
if let entries = bundle?.entry {
for entry in entries {
if let med = entry.resource as? MedicationPrescription {
meds.append(med)
}
}
}
var meds = bundle?.entry?
.filter() { return $0.resource is MedicationPrescription }
.map() { return $0.resource as! MedicationPrescription }

// now `meds` holds all known patient prescriptions
// now `meds` holds all known patient prescriptions (or is nil)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion generate-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jazzy \
-g "https://github.com/smart-on-fhir/Swift-SMART" \
-r "http://smart-on-fhir.github.io/Swift-SMART" \
-o "docs" \
--module-version "0.4.0.4879"
--module-version "1.0"

0 comments on commit 8287b5b

Please sign in to comment.