Generated Narrative: Questionnaire extract-complex-template2 Profile: Extractable Questionnaire - Template LinkID Text Cardinality Type Description & Constraints SDCQuestionnaireExtrTemplate Example Questionnaire demonstrating extraction using the template approach Questionnaire http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template2#4.0.0 #xD; patient Patient Information 0..1 group #xD; name Name 0..* group #xD; given Given Name(s) 0..* string #xD; family Family/Surname 0..1 string #xD; gender Gender 0..1 choice Value Set: AdministrativeGender #xD; dob Date of Birth 0..1 date #xD; ihi National Identifier (IHI) 0..1 string #xD; mobile-phone Mobile Phone number 0..1 string #xD; contacts Contacts 0..* group #xD; contact-name Name 0..1 string #xD; relationship Relationship 0..1 choice Value Set: Patient Contact Relationship #xD; phone Phone 0..1 string #xD; obs Observations 0..1 group #xD; height What is your current height (m) 0..1 decimal #xD; weight What is your current weight (kg) 0..1 decimal #xD; complication Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example) 0..1 boolean #xD; Documentation for this format Contained Resources Bundle #bunExtract Bundle bunExtract of type transaction Entry 1 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031 Resource Patient: Generated Narrative: Patient null Unknown, DoB Unknown ( National Identifier (IHI): ?ngen-9?) Contact Detail ph: -unknown-(Mobile) Request: POST Patient#xD; If-Match = Patient?_name=urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031#xD; Entry 2 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd032 Resource RelatedPerson: Generated Narrative: RelatedPerson patient: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031 relationship: name: null telecom: ph: -unknown-(Mobile) Request: POST RelatedPerson#xD; Entry 3 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033 Resource Observation: Generated Narrative: Observation status: Final category: Vital Signs code: Body height subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031 effective: 1900-01-01 issued: Extract Template - Extract value: %resource.authored performer: ?rref? value: cm (Details: UCUM codecm = 'cm') derivedFrom: ?rref? Request: POST Observation#xD; Entry 4 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034 Resource Observation: Generated Narrative: Observation status: Final category: Vital Signs code: Weight subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031 effective: 1900-01-01 issued: Extract Template - Extract value: %resource.authored performer: ?rref? value: kg (Details: UCUM codekg = 'kg') derivedFrom: ?rref? Request: POST Observation#xD; Entry 5 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035 Resource Observation: Generated Narrative: Observation status: Final code: sigmoidoscopy-complication subject: urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031 effective: 1900-01-01 issued: Extract Template - Extract value: %resource.authored performer: ?rref? value: Extract Template - Extract value: answer.value derivedFrom: ?rref? Request: POST Observation#xD;
item.where(linkId = 'obs').item.where(linkId = 'height')
item.where(linkId = 'obs').item.where(linkId = 'weight')
item.where(linkId = 'obs').item.where(linkId = 'complication')
Complex Extract Demonstration - Template Bundle
Example Questionnaire demonstrating extraction using the template approach
Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example)
item.where(linkId='given' or linkId='family').answer.value.join(' ')
item.where(linkId = 'family').answer.value.first()
item.where(linkId = 'given').answer.value
item.where(linkId = 'mobile-phone').answer.value
item.where(linkId = 'gender').answer.value.first().code
item.where(linkId = 'relationship').answer.value.first()
item.where(linkId = 'contact-name').answer.value.first()
item.where(linkId = 'phone').answer.value