Skip to content
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

test case for range in sheet #1881 #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions rX/instance-generation/expected/Patient2-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"resourceType" : "Patient",
"id" : "47234",
"language" : "ar",
"identifier" : [{
"system" : "http://acme.org/identifiers/Patient",
"value" : "47234"
}],
"active" : true,
"name" : [{
"family" : "Smith",
"given" : ["Jeff"]
}],
"telecom" : [{
"system" : "phone",
"value" : "555-555-5555",
"use" : "home"
}],
"gender" : "male",
"birthDate" : "1968-05-04",
"communication" : [{
"language" : {
"coding" : [{
"system" : "urn:ietf:bcp:47",
"code" : "ar"
}]
},
"preferred" : true
}],
"managingOrganization" : {
"reference" : "Organization/1"
}
}
53 changes: 53 additions & 0 deletions rX/instance-generation/factories/factories.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,59 @@
}
]
},
{
"name": "PatientGenerator2",
"details" : "Generate instances based on a profile in the IG, and fill out values from an excel spreadsheet",
"mode": "profile",
"profile": "http://hl7.org/fhir/uv/howto/StructureDefinition/test-patient-profile",
"data": "patient-cases.xlsx;PatientsShifted!B6:F9",
"format": "json",
"filename": "output/Patient2-$counter$.json",
"bundle": false,
"tables": {
"genders": "patient-genders.csv"
},
"mappings": [
{
"path": "TestPatientProfile.name",
"parts": [
{
"name": "family",
"expression": "column('Family Name')"
},
{
"name": "given",
"expression": "column('Given Name')"
}
]
},
{
"path": "TestPatientProfile.identifier",
"parts": [
{
"name": "system",
"expression": "'http://acme.org/identifiers/Patient'"
},
{
"name": "value",
"expression": "column('Patient ID')"
}
]
},
{
"path": "TestPatientProfile.birthDate",
"expression": "dateColumn('Date of Birth', 'M/d/yyyy')"
},
{
"path": "TestPatientProfile.gender",
"expression": "lookup('genders', 'gender', column('Sex'), 'code')"
},
{
"path": "TestPatientProfile.id",
"expression": "column('Patient ID')"
}
]
},
{
"name": "EncounterGenerator",
"details" : "Another liquid script showing how to do conditional content",
Expand Down
Binary file modified rX/instance-generation/factories/patient-cases.xlsx
Binary file not shown.
Loading