-
Notifications
You must be signed in to change notification settings - Fork 546
Changes to read raw resource from blob #4868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
paorodma-ms
merged 14 commits into
feature-branch/raw-resource-split
from
users/paolaro/readBlobResource2
Apr 1, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ed518b0
Changes to read raw resource from blob
paorodma-ms 2c39104
Added unit tests. Added method to read several raw resources from sto…
paorodma-ms eaa8e52
Modified interface to receive and return ResourceWrappers to read fro…
paorodma-ms 5ef7e1a
Functioning unit tests
paorodma-ms 7ec0390
Use correct fixture file
paorodma-ms d84b7ef
Remove temp test file
paorodma-ms 79c8332
Addressing PR Comments
paorodma-ms f1096be
Remove unused method
paorodma-ms 59f0963
Replaced DownloadStreamingAsync with OpenReadAsync
paorodma-ms a1f8f16
Run in parallel
paorodma-ms 4d5e1aa
Removed unnecessary variable in test.
paorodma-ms 04bf6a1
Addressing PR comments and modifying unit tests accordingly
paorodma-ms bdfa397
reverting sdk version
paorodma-ms bf72db6
Merge branch 'feature-branch/raw-resource-split' into users/paolaro/r…
paorodma-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Microsoft.Health.Fhir.Blob.UnitTests/Fixtures/resources.ndjson
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{"resourceType":"Patient","id":"01332066-fca8-cce4-d9b7-75b7fd1e2004","meta":{"profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">Generated by <a href=\"https://github.com/synthetichealth/synthea\">Synthea</a>.Version identifier: dd1e3be\n . Person seed: -7060589838743381365 Population seed: 54321</div>"},"extension":[{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-race","extension":[{"url":"ombCategory","valueCoding":{"system":"urn:oid:2.16.840.1.113883.6.238","code":"2106-3","display":"White"}},{"url":"text","valueString":"White"}]},{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity","extension":[{"url":"ombCategory","valueCoding":{"system":"urn:oid:2.16.840.1.113883.6.238","code":"2186-5","display":"Not Hispanic or Latino"}},{"url":"text","valueString":"Not Hispanic or Latino"}]},{"url":"http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName","valueString":"Cicely661 Pacocha935"},{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex","valueCode":"F"},{"url":"http://hl7.org/fhir/StructureDefinition/patient-birthPlace","valueAddress":{"city":"Pratt","state":"Kansas","country":"US"}},{"url":"http://synthetichealth.github.io/synthea/disability-adjusted-life-years","valueDecimal":0.05295623081989285},{"url":"http://synthetichealth.github.io/synthea/quality-adjusted-life-years","valueDecimal":0.9470437691801071}],"identifier":[{"system":"https://github.com/synthetichealth/synthea","value":"01332066-fca8-cce4-d9b7-75b7fd1e2004"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"MR","display":"Medical Record Number"}],"text":"Medical Record Number"},"system":"http://hospital.smarthealthit.org","value":"01332066-fca8-cce4-d9b7-75b7fd1e2004"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"SS","display":"Social Security Number"}],"text":"Social Security Number"},"system":"http://hl7.org/fhir/sid/us-ssn","value":"999-81-5679"}],"name":[{"use":"official","family":"Yundt842","given":["Donya787","Mikaela760"]}],"telecom":[{"system":"phone","value":"555-907-9875","use":"home"}],"gender":"female","birthDate":"1949-11-14","deceasedDateTime":"1951-02-20T08:15:54-05:00","address":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/geolocation","extension":[{"url":"latitude","valueDecimal":39.155185939682845},{"url":"longitude","valueDecimal":-94.59968151629131}]}],"line":["1045 Schmitt Spur"],"city":"Kansas City","state":"KS","postalCode":"66104","country":"US"}],"maritalStatus":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus","code":"S","display":"Never Married"}],"text":"Never Married"},"multipleBirthBoolean":false,"communication":[{"language":{"coding":[{"system":"urn:ietf:bcp:47","code":"en-US","display":"English (United States)"}],"text":"English (United States)"}}]} | ||
{"resourceType":"Patient","id":"01707a0c-9619-ccba-695a-b270744d76c2","meta":{"profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">Generated by <a href=\"https://github.com/synthetichealth/synthea\">Synthea</a>.Version identifier: dd1e3be\n . Person seed: 4999451714027775673 Population seed: 54321</div>"},"extension":[{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-race","extension":[{"url":"ombCategory","valueCoding":{"system":"urn:oid:2.16.840.1.113883.6.238","code":"2106-3","display":"White"}},{"url":"text","valueString":"White"}]},{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity","extension":[{"url":"ombCategory","valueCoding":{"system":"urn:oid:2.16.840.1.113883.6.238","code":"2186-5","display":"Not Hispanic or Latino"}},{"url":"text","valueString":"Not Hispanic or Latino"}]},{"url":"http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName","valueString":"Leeanne840 McLaughlin530"},{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex","valueCode":"F"},{"url":"http://hl7.org/fhir/StructureDefinition/patient-birthPlace","valueAddress":{"city":"Clear Creek","state":"Kansas","country":"US"}},{"url":"http://synthetichealth.github.io/synthea/disability-adjusted-life-years","valueDecimal":22.041937018127722},{"url":"http://synthetichealth.github.io/synthea/quality-adjusted-life-years","valueDecimal":52.958062981872274}],"identifier":[{"system":"https://github.com/synthetichealth/synthea","value":"01707a0c-9619-ccba-695a-b270744d76c2"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"MR","display":"Medical Record Number"}],"text":"Medical Record Number"},"system":"http://hospital.smarthealthit.org","value":"01707a0c-9619-ccba-695a-b270744d76c2"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"SS","display":"Social Security Number"}],"text":"Social Security Number"},"system":"http://hl7.org/fhir/sid/us-ssn","value":"999-46-1590"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"DL","display":"Driver's license number"}],"text":"Driver's license number"},"system":"urn:oid:2.16.840.1.113883.4.3.25","value":"S99963906"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"PPN","display":"Passport Number"}],"text":"Passport Number"},"system":"http://standardhealthrecord.org/fhir/StructureDefinition/passportNumber","value":"X14757936X"}],"name":[{"use":"official","family":"Reynolds644","given":["Silvana620","Coralee911"],"prefix":["Ms."]}],"telecom":[{"system":"phone","value":"555-907-8526","use":"home"}],"gender":"female","birthDate":"1947-01-14","address":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/geolocation","extension":[{"url":"latitude","valueDecimal":39.20354220841662},{"url":"longitude","valueDecimal":-95.92647404121237}]}],"line":["718 D'Amore Byway Apt 11"],"city":"Rossville","state":"KS","postalCode":"66533","country":"US"}],"maritalStatus":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus","code":"S","display":"Never Married"}],"text":"Never Married"},"multipleBirthBoolean":false,"communication":[{"language":{"coding":[{"system":"urn:ietf:bcp:47","code":"en-US","display":"English (United States)"}],"text":"English (United States)"}}]} | ||
{"resourceType":"Patient","id":"01365484-dba4-bba5-e8a6-64a6cc0d2393","meta":{"profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">Generated by <a href=\"https://github.com/synthetichealth/synthea\">Synthea</a>.Version identifier: dd1e3be\n . Person seed: -7156842697965412357 Population seed: 54321</div>"},"extension":[{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-race","extension":[{"url":"ombCategory","valueCoding":{"system":"urn:oid:2.16.840.1.113883.6.238","code":"2106-3","display":"White"}},{"url":"text","valueString":"White"}]},{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity","extension":[{"url":"ombCategory","valueCoding":{"system":"urn:oid:2.16.840.1.113883.6.238","code":"2186-5","display":"Not Hispanic or Latino"}},{"url":"text","valueString":"Not Hispanic or Latino"}]},{"url":"http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName","valueString":"Doris Green"},{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex","valueCode":"M"},{"url":"http://hl7.org/fhir/StructureDefinition/patient-birthPlace","valueAddress":{"city":"Boston","state":"Massachusets","country":"US"}},{"url":"http://synthetichealth.github.io/synthea/disability-adjusted-life-years","valueDecimal":35.1},{"url":"http://synthetichealth.github.io/synthea/quality-adjusted-life-years","valueDecimal":46.9470437691801071}],"identifier":[{"system":"https://github.com/synthetichealth/synthea","value":"01332066-fca8-cce4-d9b7-75b7fd1e2004"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"MR","display":"Medical Record Number"}],"text":"Medical Record Number"},"system":"http://hospital.smarthealthit.org","value":"01332066-fca8-cce4-d9b7-75b7fd1e2004"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"SS","display":"Social Security Number"}],"text":"Social Security Number"},"system":"http://hl7.org/fhir/sid/us-ssn","value":"999-81-5679"}],"name":[{"use":"official","family":"Green","given":["John","Johnny"]}],"telecom":[{"system":"phone","value":"682-564-9866","use":"home"}],"gender":"male","birthDate":"1995-01-13","address":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/geolocation","extension":[{"url":"latitude","valueDecimal":39.155185939682845},{"url":"longitude","valueDecimal":-94.59968151629131}]}],"line":["1045 Schmitt Spur"],"city":"Boston City","state":"MA","postalCode":"66104","country":"US"}],"maritalStatus":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus","code":"M","display":"Married"}],"text":"Married"},"multipleBirthBoolean":false,"communication":[{"language":{"coding":[{"system":"urn:ietf:bcp:47","code":"en-US","display":"English (United States)"}],"text":"English (United States)"}}]} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.