@medplum/mock 0.9.25 → 0.9.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1699 -1385
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/index.js +1700 -1386
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/types/client.d.ts +1 -0
- package/dist/types/mocks/types.d.ts +0 -31
- package/dist/types/repo.d.ts +1 -0
- package/package.json +4 -4
package/dist/esm/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createReference as e,getReferenceString as t,evalFhirPath as i,Operator as n,MedplumClient as o,isOk as a,badRequest as r,allOk as s,notFound as d,parseSearchDefinition as c,getStatus as h}from"@medplum/core";const p={resourceType:"AccessPolicy",id:"123",name:"Example Access Policy"},u={resourceType:"ValueSet",id:"example-statuses",compose:{include:[{concept:[{code:"ORDERED"},{code:"SENT_TO_CUSTOMER"},{code:"SENT_BACK_TO_LAB"},{code:"LAB_PROCESSED"},{code:"LAB_COMPLETE"}]}]}},f={resourceType:"UserConfiguration",id:"123",name:"Example User Configuration",option:[{id:"statusValueSet",valueString:"ValueSet/example-statuses"}]},m={resourceType:"Organization",id:"123",meta:{versionId:"1"},name:"Test Organization"},l={resourceType:"Organization",id:"456",meta:{versionId:"1"},name:"Different"},g={resourceType:"Practitioner",id:"123",meta:{versionId:"2",lastUpdated:"2021-01-02T12:00:00Z",author:{reference:"Practitioner/123"}},name:[{given:["Alice"],family:"Smith"}],photo:[{contentType:"image/png",url:"https://docs.medplum.com/img/cdc-femaledoc.png"}]},y={resourceType:"Practitioner",id:"123",meta:{versionId:"1",lastUpdated:"2021-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},name:[{given:["Medplum"],family:"Admin"}]},x={resourceType:"Schedule",id:"123",actor:[{reference:"Practitioner/123",display:"Dr. Alice Smith"}]},b=(()=>{const t=e(x),i=[],n=new Date;for(let e=0;e<60;e++){for(const o of[9,10,11,13,14,15])n.setHours(o,0,0,0),i.push({resourceType:"Slot",id:`slot-${e}-${o}`,start:n.toISOString(),schedule:t});n.setDate(n.getDate()+1)}return i})(),v={resourceType:"Bot",id:"123",name:"Test Bot",code:'console.log("hello world");'},S={resourceType:"ClientApplication",id:"123",name:"Test Client"},T={resourceType:"Questionnaire",id:"123",name:"Vitals",title:"Vitals",subjectType:["Patient"],item:[{linkId:"1",text:"First question",type:"string"}]},w={resourceType:"QuestionnaireResponse",id:"123",questionnaire:"Questionnaire/123",subject:{reference:"Patient/123"},source:{reference:"Practitioner/123"}},R={resourceType:"Patient",id:"123",gender:"male",meta:{versionId:"2",lastUpdated:"2020-01-02T00:00:00.000Z",author:{reference:"Practitioner/123"}},identifier:[{system:"abc",value:"123"},{system:"def",value:"456"}],active:!0,birthDate:"1956-05-12",name:[{given:["Homer"],family:"Simpson"}],photo:[{contentType:"image/png",url:"https://docs.medplum.com/img/homer-simpson.png"}],telecom:[{system:"phone",use:"home",value:"555-7334"},{system:"email",use:"home",value:"chunkylover53@aol.com"}],address:[{use:"home",line:["742 Evergreen Terrace"],city:"Springfield",state:"IL",postalCode:"12345"}]},q={resourceType:"Patient",id:"123",meta:{versionId:"1",lastUpdated:"2020-01-01T00:00:00.000Z",author:{reference:"Practitioner/123"}},name:[{given:["Homer"],family:"Simpson"}],photo:[{contentType:"image/png",url:"https://docs.medplum.com/img/homer-simpson.png"}]},P={resourceType:"Encounter",id:"123",meta:{versionId:"456",lastUpdated:"2020-01-01T00:00:00.000Z",author:{reference:"Practitioner/123"}}},E={resourceType:"Communication",id:"123",meta:{lastUpdated:"2020-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},payload:[{contentString:"Hello world"}]},O={resourceType:"Media",id:"123",meta:{lastUpdated:"2020-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},content:{contentType:"text/plain",url:"https://example.com/test.txt"}},D={resourceType:"Observation",id:"1",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 1"},valueString:"test"},A={resourceType:"Observation",id:"2",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 2"},valueQuantity:{value:20,unit:"x"},referenceRange:[{low:{value:10}}]},C={resourceType:"Observation",id:"3",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 3"},valueQuantity:{value:30,unit:"x"},referenceRange:[{high:{value:50}}]},L={resourceType:"Observation",id:"4",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 4"},valueQuantity:{value:50,unit:"x",comparator:">"},referenceRange:[{low:{value:10,unit:"x"},high:{value:50,unit:"x"}}],interpretation:[{text:"HIGH"}]},k={resourceType:"Observation",id:"5",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 5"},valueQuantity:{value:100,unit:"x"},referenceRange:[{}],interpretation:[{}]},Q={resourceType:"Observation",id:"6",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 6"},component:[{valueQuantity:{value:110,unit:"mmHg",system:"http://unitsofmeasure.org"}},{valueQuantity:{value:75,unit:"mmHg",system:"http://unitsofmeasure.org"}}]},z={id:"123",resourceType:"Specimen",subject:e(R),collection:{collectedDateTime:"2020-01-01T12:00:00Z"},note:[{text:"Specimen hemolyzed. Results may be affected."},{text:"Specimen lipemic. Results may be affected."}]},H={resourceType:"ServiceRequest",id:"123",meta:{versionId:"1",lastUpdated:"2020-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},identifier:[{system:"https://example.com",value:"9001"}],code:{coding:[{system:"http://snomed.info/sct",code:"SERVICE_REQUEST_CODE"}]},subject:{reference:"Patient/123",display:"Homer Simpson"},status:"active",orderDetail:[{text:"ORDERED"}],specimen:[e(z)],authoredOn:"2020-01-01T12:00:00Z"},M={resourceType:"DiagnosticReport",id:"123",meta:{versionId:"1",lastUpdated:"2020-01-02T12:00:00Z",author:{reference:"Practitioner/123"}},subject:e(R),basedOn:[e(H)],specimen:[e(z)],resultsInterpreter:[e(g)],result:[e(D),e(A),e(C),e(L),e(k),e(Q)]},I={resourceType:"Patient",id:"555",meta:{versionId:"1",lastUpdated:"2020-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},birthDate:"1979-12-17",name:[{given:["Bart"],family:"Simpson"}],photo:[{contentType:"image/jpeg",url:"https://example.com/picture.jpg"}],telecom:[{system:"phone",use:"home",value:"555-1239"},{system:"email",use:"home",value:"bart@thesimpsons.com"}]},V={resourceType:"Subscription",id:"123",meta:{versionId:"456"}},U={resourceType:"AuditEvent",id:"123",meta:{lastUpdated:(new Date).toISOString(),versionId:"456",author:{reference:"Practitioner/123"}}};const j=[{resourceType:"SearchParameter",id:"Patient-name",base:["Patient"],code:"name",name:"name",type:"string",expression:"Patient.name"},{resourceType:"SearchParameter",id:"Patient-birthdate",base:["Patient"],code:"birthdate",name:"birthdate",type:"date",expression:"Patient.birthDate"},{resourceType:"SearchParameter",id:"Patient-organization",base:["Patient"],code:"organization",name:"organization",type:"reference",expression:"Patient.managingOrganization",target:["Organization"]},{resourceType:"SearchParameter",id:"Patient-active",base:["Patient"],code:"active",name:"active",type:"token",expression:"Patient.active"},{resourceType:"SearchParameter",id:"individual-telecom",base:["Patient","Practitioner"],code:"telecom",name:"telecom",type:"token",expression:"Patient.telecom | Practitioner.telecom"},{resourceType:"SearchParameter",id:"individual-email",base:["Patient","Practitioner"],code:"email",name:"email",type:"token",expression:"Patient.telecom.where(system='email') | Practitioner.telecom.where(system='email')"},{resourceType:"SearchParameter",id:"individual-phone",base:["Patient","Practitioner"],code:"phone",name:"phone",type:"token",expression:"Patient.telecom.where(system='phone') | Practitioner.telecom.where(system='phone')"},{resourceType:"SearchParameter",id:"individual-address-city",base:["Patient","Practitioner"],code:"address-city",name:"address-city",type:"string",expression:"Patient.address.city | Practitioner.address.city"},{resourceType:"SearchParameter",id:"individual-address-state",base:["Patient","Practitioner"],code:"address-state",name:"address-state",type:"token",expression:"Patient.address.state | Practitioner.address.state"},{resourceType:"SearchParameter",id:"ServiceRequest-subject",code:"subject",base:["ServiceRequest"],type:"reference",expression:"ServiceRequest.subject",target:["Group","Device","Patient","Location"]},{resourceType:"SearchParameter",id:"ServiceRequest-authored",code:"authored",base:["ServiceRequest"],type:"date",expression:"ServiceRequest.authoredOn"},{resourceType:"SearchParameter",id:"Observation-value-quantity",code:"value-quantity",base:["Observation"],type:"quantity",expression:"(Observation.value as Quantity) | (Observation.value as SampledData)"},{resourceType:"SearchParameter",id:"Observation-value-string",code:"value-string",base:["Observation"],type:"string",expression:"(Observation.value as string) | (Observation.value as CodeableConcept).text"},{resourceType:"SearchParameter",id:"Encounter-length",code:"length",base:["Encounter"],type:"quantity",expression:"Encounter.length"}],N={data:{StructureDefinitionList:[{resourceType:"StructureDefinition",id:"Address",name:"Address",description:"Base StructureDefinition for Address Type: An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.",type:"Address",snapshot:{element:[{id:"Address",path:"Address",definition:"An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.",min:0,max:"*"},{id:"Address.id",path:"Address.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Address.extension",path:"Address.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Address.use",path:"Address.use",definition:"The purpose of this address.",min:0,max:"1",type:[{code:"code"}],binding:{description:"The use of an address.",valueSet:"http://hl7.org/fhir/ValueSet/address-use|4.0.1"}},{id:"Address.type",path:"Address.type",definition:"Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.",min:0,max:"1",type:[{code:"code"}],binding:{description:"The type of an address (physical / postal).",valueSet:"http://hl7.org/fhir/ValueSet/address-type|4.0.1"}},{id:"Address.text",path:"Address.text",definition:"Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.",min:0,max:"1",type:[{code:"string"}]},{id:"Address.line",path:"Address.line",definition:"This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.",min:0,max:"*",type:[{code:"string"}]},{id:"Address.city",path:"Address.city",definition:"The name of the city, town, suburb, village or other community or delivery center.",min:0,max:"1",type:[{code:"string"}]},{id:"Address.district",path:"Address.district",definition:"The name of the administrative area (county).",min:0,max:"1",type:[{code:"string"}]},{id:"Address.state",path:"Address.state",definition:"Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).",min:0,max:"1",type:[{code:"string"}]},{id:"Address.postalCode",path:"Address.postalCode",definition:"A postal code designating a region defined by the postal service.",min:0,max:"1",type:[{code:"string"}]},{id:"Address.country",path:"Address.country",definition:"Country - a nation as commonly understood or generally accepted.",min:0,max:"1",type:[{code:"string"}]},{id:"Address.period",path:"Address.period",definition:"Time period when address was/is in use.",min:0,max:"1",type:[{code:"Period"}]}]}},{resourceType:"StructureDefinition",id:"DiagnosticReport",name:"DiagnosticReport",description:"The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports.",type:"DiagnosticReport",snapshot:{element:[{id:"DiagnosticReport",path:"DiagnosticReport",definition:"The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports.",min:0,max:"*"},{id:"DiagnosticReport.id",path:"DiagnosticReport.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"DiagnosticReport.meta",path:"DiagnosticReport.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"DiagnosticReport.implicitRules",path:"DiagnosticReport.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"DiagnosticReport.language",path:"DiagnosticReport.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"DiagnosticReport.text",path:"DiagnosticReport.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"DiagnosticReport.contained",path:"DiagnosticReport.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"DiagnosticReport.extension",path:"DiagnosticReport.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"DiagnosticReport.modifierExtension",path:"DiagnosticReport.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"DiagnosticReport.identifier",path:"DiagnosticReport.identifier",definition:"Identifiers assigned to this report by the performer or other systems.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"DiagnosticReport.basedOn",path:"DiagnosticReport.basedOn",definition:"Details concerning a service requested.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/CarePlan","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation","http://hl7.org/fhir/StructureDefinition/MedicationRequest","http://hl7.org/fhir/StructureDefinition/NutritionOrder","http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"DiagnosticReport.status",path:"DiagnosticReport.status",definition:"The status of the diagnostic report.",min:1,max:"1",type:[{code:"code"}],binding:{description:"The status of the diagnostic report.",valueSet:"http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1"}},{id:"DiagnosticReport.category",path:"DiagnosticReport.category",definition:"A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Codes for diagnostic service sections.",valueSet:"http://hl7.org/fhir/ValueSet/diagnostic-service-sections"}},{id:"DiagnosticReport.code",path:"DiagnosticReport.code",definition:"A code or name that describes this diagnostic report.",min:1,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Codes that describe Diagnostic Reports.",valueSet:"http://hl7.org/fhir/ValueSet/report-codes"}},{id:"DiagnosticReport.subject",path:"DiagnosticReport.subject",definition:"The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"DiagnosticReport.encounter",path:"DiagnosticReport.encounter",definition:"The healthcare event (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Encounter"]}]},{id:"DiagnosticReport.effective[x]",path:"DiagnosticReport.effective[x]",definition:"The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"}]},{id:"DiagnosticReport.issued",path:"DiagnosticReport.issued",definition:"The date and time that this version of the report was made available to providers, typically after the report was reviewed and verified.",min:0,max:"1",type:[{code:"instant"}]},{id:"DiagnosticReport.performer",path:"DiagnosticReport.performer",definition:"The diagnostic service that is responsible for issuing the report.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/CareTeam"]}]},{id:"DiagnosticReport.resultsInterpreter",path:"DiagnosticReport.resultsInterpreter",definition:"The practitioner or organization that is responsible for the report's conclusions and interpretations.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/CareTeam"]}]},{id:"DiagnosticReport.specimen",path:"DiagnosticReport.specimen",definition:"Details about the specimens on which this diagnostic report is based.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Specimen"]}]},{id:"DiagnosticReport.result",path:"DiagnosticReport.result",definition:"[Observations](observation.html) that are part of this diagnostic report.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Observation"]}]},{id:"DiagnosticReport.imagingStudy",path:"DiagnosticReport.imagingStudy",definition:"One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/ImagingStudy"]}]},{id:"DiagnosticReport.media",path:"DiagnosticReport.media",definition:"A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"DiagnosticReport.media.id",path:"DiagnosticReport.media.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"DiagnosticReport.media.extension",path:"DiagnosticReport.media.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"DiagnosticReport.media.modifierExtension",path:"DiagnosticReport.media.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"DiagnosticReport.media.comment",path:"DiagnosticReport.media.comment",definition:"A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features.",min:0,max:"1",type:[{code:"string"}]},{id:"DiagnosticReport.media.link",path:"DiagnosticReport.media.link",definition:"Reference to the image source.",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Media"]}]},{id:"DiagnosticReport.conclusion",path:"DiagnosticReport.conclusion",definition:"Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report.",min:0,max:"1",type:[{code:"string"}]},{id:"DiagnosticReport.conclusionCode",path:"DiagnosticReport.conclusionCode",definition:"One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Diagnosis codes provided as adjuncts to the report.",valueSet:"http://hl7.org/fhir/ValueSet/clinical-findings"}},{id:"DiagnosticReport.presentedForm",path:"DiagnosticReport.presentedForm",definition:"Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.",min:0,max:"*",type:[{code:"Attachment"}]}]}},{resourceType:"StructureDefinition",id:"Encounter",name:"Encounter",description:"An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.",type:"Encounter",snapshot:{element:[{id:"Encounter",path:"Encounter",definition:"An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.",min:0,max:"*"},{id:"Encounter.id",path:"Encounter.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.meta",path:"Encounter.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"Encounter.implicitRules",path:"Encounter.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"Encounter.language",path:"Encounter.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"Encounter.text",path:"Encounter.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"Encounter.contained",path:"Encounter.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"Encounter.extension",path:"Encounter.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.modifierExtension",path:"Encounter.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.identifier",path:"Encounter.identifier",definition:"Identifier(s) by which this encounter is known.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Encounter.status",path:"Encounter.status",definition:"planned | arrived | triaged | in-progress | onleave | finished | cancelled +.",min:1,max:"1",type:[{code:"code"}],binding:{description:"Current state of the encounter.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"}},{id:"Encounter.statusHistory",path:"Encounter.statusHistory",definition:"The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.statusHistory.id",path:"Encounter.statusHistory.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.statusHistory.extension",path:"Encounter.statusHistory.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.statusHistory.modifierExtension",path:"Encounter.statusHistory.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.statusHistory.status",path:"Encounter.statusHistory.status",definition:"planned | arrived | triaged | in-progress | onleave | finished | cancelled +.",min:1,max:"1",type:[{code:"code"}],binding:{description:"Current state of the encounter.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"}},{id:"Encounter.statusHistory.period",path:"Encounter.statusHistory.period",definition:"The time that the episode was in the specified status.",min:1,max:"1",type:[{code:"Period"}]},{id:"Encounter.class",path:"Encounter.class",definition:"Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.",min:1,max:"1",type:[{code:"Coding"}],binding:{description:"Classification of the encounter.",valueSet:"http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"}},{id:"Encounter.classHistory",path:"Encounter.classHistory",definition:"The class history permits the tracking of the encounters transitions without needing to go through the resource history. This would be used for a case where an admission starts of as an emergency encounter, then transitions into an inpatient scenario. Doing this and not restarting a new encounter ensures that any lab/diagnostic results can more easily follow the patient and not require re-processing and not get lost or cancelled during a kind of discharge from emergency to inpatient.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.classHistory.id",path:"Encounter.classHistory.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.classHistory.extension",path:"Encounter.classHistory.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.classHistory.modifierExtension",path:"Encounter.classHistory.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.classHistory.class",path:"Encounter.classHistory.class",definition:"inpatient | outpatient | ambulatory | emergency +.",min:1,max:"1",type:[{code:"Coding"}],binding:{description:"Classification of the encounter.",valueSet:"http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"}},{id:"Encounter.classHistory.period",path:"Encounter.classHistory.period",definition:"The time that the episode was in the specified class.",min:1,max:"1",type:[{code:"Period"}]},{id:"Encounter.type",path:"Encounter.type",definition:"Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"The type of encounter.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-type"}},{id:"Encounter.serviceType",path:"Encounter.serviceType",definition:"Broad categorization of the service that is to be provided (e.g. cardiology).",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Broad categorization of the service that is to be provided.",valueSet:"http://hl7.org/fhir/ValueSet/service-type"}},{id:"Encounter.priority",path:"Encounter.priority",definition:"Indicates the urgency of the encounter.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Indicates the urgency of the encounter.",valueSet:"http://terminology.hl7.org/ValueSet/v3-ActPriority"}},{id:"Encounter.subject",path:"Encounter.subject",definition:"The patient or group present at the encounter.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group"]}]},{id:"Encounter.episodeOfCare",path:"Encounter.episodeOfCare",definition:"Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"]}]},{id:"Encounter.basedOn",path:"Encounter.basedOn",definition:"The request this encounter satisfies (e.g. incoming referral or procedure request).",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"Encounter.participant",path:"Encounter.participant",definition:"The list of people responsible for providing the service.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.participant.id",path:"Encounter.participant.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.participant.extension",path:"Encounter.participant.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.participant.modifierExtension",path:"Encounter.participant.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.participant.type",path:"Encounter.participant.type",definition:"Role of participant in encounter.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Role of participant in encounter.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-participant-type"}},{id:"Encounter.participant.period",path:"Encounter.participant.period",definition:"The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.",min:0,max:"1",type:[{code:"Period"}]},{id:"Encounter.participant.individual",path:"Encounter.participant.individual",definition:"Persons involved in the encounter other than the patient.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/RelatedPerson"]}]},{id:"Encounter.appointment",path:"Encounter.appointment",definition:"The appointment that scheduled this encounter.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Appointment"]}]},{id:"Encounter.period",path:"Encounter.period",definition:"The start and end time of the encounter.",min:0,max:"1",type:[{code:"Period"}]},{id:"Encounter.length",path:"Encounter.length",definition:"Quantity of time the encounter lasted. This excludes the time during leaves of absence.",min:0,max:"1",type:[{code:"Duration"}]},{id:"Encounter.reasonCode",path:"Encounter.reasonCode",definition:"Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Reason why the encounter takes place.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-reason"}},{id:"Encounter.reasonReference",path:"Encounter.reasonReference",definition:"Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Condition","http://hl7.org/fhir/StructureDefinition/Procedure","http://hl7.org/fhir/StructureDefinition/Observation","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"]}]},{id:"Encounter.diagnosis",path:"Encounter.diagnosis",definition:"The list of diagnosis relevant to this encounter.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.diagnosis.id",path:"Encounter.diagnosis.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.diagnosis.extension",path:"Encounter.diagnosis.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.diagnosis.modifierExtension",path:"Encounter.diagnosis.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.diagnosis.condition",path:"Encounter.diagnosis.condition",definition:"Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Condition","http://hl7.org/fhir/StructureDefinition/Procedure"]}]},{id:"Encounter.diagnosis.use",path:"Encounter.diagnosis.use",definition:"Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …).",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"The type of diagnosis this condition represents.",valueSet:"http://hl7.org/fhir/ValueSet/diagnosis-role"}},{id:"Encounter.diagnosis.rank",path:"Encounter.diagnosis.rank",definition:"Ranking of the diagnosis (for each role type).",min:0,max:"1",type:[{code:"positiveInt"}]},{id:"Encounter.account",path:"Encounter.account",definition:"The set of accounts that may be used for billing for this Encounter.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Account"]}]},{id:"Encounter.hospitalization",path:"Encounter.hospitalization",definition:"Details about the admission to a healthcare service.",min:0,max:"1",type:[{code:"BackboneElement"}]},{id:"Encounter.hospitalization.id",path:"Encounter.hospitalization.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.hospitalization.extension",path:"Encounter.hospitalization.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.hospitalization.modifierExtension",path:"Encounter.hospitalization.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.hospitalization.preAdmissionIdentifier",path:"Encounter.hospitalization.preAdmissionIdentifier",definition:"Pre-admission identifier.",min:0,max:"1",type:[{code:"Identifier"}]},{id:"Encounter.hospitalization.origin",path:"Encounter.hospitalization.origin",definition:"The location/organization from which the patient came before admission.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Location","http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Encounter.hospitalization.admitSource",path:"Encounter.hospitalization.admitSource",definition:"From where patient was admitted (physician referral, transfer).",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"From where the patient was admitted.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-admit-source"}},{id:"Encounter.hospitalization.reAdmission",path:"Encounter.hospitalization.reAdmission",definition:"Whether this hospitalization is a readmission and why if known.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"The reason for re-admission of this hospitalization encounter.",valueSet:"http://terminology.hl7.org/ValueSet/v2-0092"}},{id:"Encounter.hospitalization.dietPreference",path:"Encounter.hospitalization.dietPreference",definition:"Diet preferences reported by the patient.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Medical, cultural or ethical food preferences to help with catering requirements.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-diet"}},{id:"Encounter.hospitalization.specialCourtesy",path:"Encounter.hospitalization.specialCourtesy",definition:"Special courtesies (VIP, board member).",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Special courtesies.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-special-courtesy"}},{id:"Encounter.hospitalization.specialArrangement",path:"Encounter.hospitalization.specialArrangement",definition:"Any special requests that have been made for this hospitalization encounter, such as the provision of specific equipment or other things.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Special arrangements.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-special-arrangements"}},{id:"Encounter.hospitalization.destination",path:"Encounter.hospitalization.destination",definition:"Location/organization to which the patient is discharged.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Location","http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Encounter.hospitalization.dischargeDisposition",path:"Encounter.hospitalization.dischargeDisposition",definition:"Category or kind of location after discharge.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Discharge Disposition.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"}},{id:"Encounter.location",path:"Encounter.location",definition:"List of locations where the patient has been during this encounter.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.location.id",path:"Encounter.location.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.location.extension",path:"Encounter.location.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.location.modifierExtension",path:"Encounter.location.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.location.location",path:"Encounter.location.location",definition:"The location where the encounter takes place.",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"Encounter.location.status",path:"Encounter.location.status",definition:"The status of the participants' presence at the specified location during the period specified. If the participant is no longer at the location, then the period will have an end date/time.",min:0,max:"1",type:[{code:"code"}],binding:{description:"The status of the location.",valueSet:"http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1"}},{id:"Encounter.location.physicalType",path:"Encounter.location.physicalType",definition:"This will be used to specify the required levels (bed/ward/room/etc.) desired to be recorded to simplify either messaging or query.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Physical form of the location.",valueSet:"http://hl7.org/fhir/ValueSet/location-physical-type"}},{id:"Encounter.location.period",path:"Encounter.location.period",definition:"Time period during which the patient was present at the location.",min:0,max:"1",type:[{code:"Period"}]},{id:"Encounter.serviceProvider",path:"Encounter.serviceProvider",definition:"The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation. Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Encounter.partOf",path:"Encounter.partOf",definition:"Another Encounter of which this encounter is a part of (administratively or in time).",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Encounter"]}]}]}},{resourceType:"StructureDefinition",id:"Observation",name:"Observation",description:"Measurements and simple assertions made about a patient, device or other subject.",type:"Observation",snapshot:{element:[{id:"Observation",path:"Observation",definition:"Measurements and simple assertions made about a patient, device or other subject.",min:0,max:"*"},{id:"Observation.id",path:"Observation.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Observation.meta",path:"Observation.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"Observation.implicitRules",path:"Observation.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"Observation.language",path:"Observation.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"Observation.text",path:"Observation.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"Observation.contained",path:"Observation.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"Observation.extension",path:"Observation.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.modifierExtension",path:"Observation.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.identifier",path:"Observation.identifier",definition:"A unique identifier assigned to this observation.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Observation.basedOn",path:"Observation.basedOn",definition:"A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/CarePlan","http://hl7.org/fhir/StructureDefinition/DeviceRequest","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation","http://hl7.org/fhir/StructureDefinition/MedicationRequest","http://hl7.org/fhir/StructureDefinition/NutritionOrder","http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"Observation.partOf",path:"Observation.partOf",definition:"A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/MedicationAdministration","http://hl7.org/fhir/StructureDefinition/MedicationDispense","http://hl7.org/fhir/StructureDefinition/MedicationStatement","http://hl7.org/fhir/StructureDefinition/Procedure","http://hl7.org/fhir/StructureDefinition/Immunization","http://hl7.org/fhir/StructureDefinition/ImagingStudy"]}]},{id:"Observation.status",path:"Observation.status",definition:"The status of the result value.",min:1,max:"1",type:[{code:"code"}],binding:{description:"Codes providing the status of an observation.",valueSet:"http://hl7.org/fhir/ValueSet/observation-status|4.0.1"}},{id:"Observation.category",path:"Observation.category",definition:"A code that classifies the general type of observation being made.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Codes for high level observation categories.",valueSet:"http://hl7.org/fhir/ValueSet/observation-category"}},{id:"Observation.code",path:"Observation.code",definition:'Describes what was observed. Sometimes this is called the observation "name".',min:1,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Codes identifying names of simple observations.",valueSet:"http://hl7.org/fhir/ValueSet/observation-codes"}},{id:"Observation.subject",path:"Observation.subject",definition:"The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"Observation.focus",path:"Observation.focus",definition:"The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}]},{id:"Observation.encounter",path:"Observation.encounter",definition:"The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Encounter"]}]},{id:"Observation.effective[x]",path:"Observation.effective[x]",definition:'The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.',min:0,max:"1",type:[{code:"dateTime"},{code:"Period"},{code:"Timing"},{code:"instant"}]},{id:"Observation.issued",path:"Observation.issued",definition:"The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.",min:0,max:"1",type:[{code:"instant"}]},{id:"Observation.performer",path:"Observation.performer",definition:'Who was responsible for asserting the observed value as "true".',min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/CareTeam","http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/RelatedPerson"]}]},{id:"Observation.value[x]",path:"Observation.value[x]",definition:"The information determined as a result of making the observation, if the information has a simple value.",min:0,max:"1",type:[{code:"Quantity"},{code:"CodeableConcept"},{code:"string"},{code:"boolean"},{code:"integer"},{code:"Range"},{code:"Ratio"},{code:"SampledData"},{code:"time"},{code:"dateTime"},{code:"Period"}]},{id:"Observation.dataAbsentReason",path:"Observation.dataAbsentReason",definition:"Provides a reason why the expected value in the element Observation.value[x] is missing.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Codes specifying why the result (`Observation.value[x]`) is missing.",valueSet:"http://hl7.org/fhir/ValueSet/data-absent-reason"}},{id:"Observation.interpretation",path:"Observation.interpretation",definition:"A categorical assessment of an observation value. For example, high, low, normal.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Codes identifying interpretations of observations.",valueSet:"http://hl7.org/fhir/ValueSet/observation-interpretation"}},{id:"Observation.note",path:"Observation.note",definition:"Comments about the observation or the results.",min:0,max:"*",type:[{code:"Annotation"}]},{id:"Observation.bodySite",path:"Observation.bodySite",definition:"Indicates the site on the subject's body where the observation was made (i.e. the target site).",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Codes describing anatomical locations. May include laterality.",valueSet:"http://hl7.org/fhir/ValueSet/body-site"}},{id:"Observation.method",path:"Observation.method",definition:"Indicates the mechanism used to perform the observation.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Methods for simple observations.",valueSet:"http://hl7.org/fhir/ValueSet/observation-methods"}},{id:"Observation.specimen",path:"Observation.specimen",definition:"The specimen that was used when this observation was made.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Specimen"]}]},{id:"Observation.device",path:"Observation.device",definition:"The device used to generate the observation data.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/DeviceMetric"]}]},{id:"Observation.referenceRange",path:"Observation.referenceRange",definition:'Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an "OR". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.',min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Observation.referenceRange.id",path:"Observation.referenceRange.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Observation.referenceRange.extension",path:"Observation.referenceRange.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.referenceRange.modifierExtension",path:"Observation.referenceRange.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.referenceRange.low",path:"Observation.referenceRange.low",definition:"The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Observation.referenceRange.high",path:"Observation.referenceRange.high",definition:"The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Observation.referenceRange.type",path:"Observation.referenceRange.type",definition:"Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Code for the meaning of a reference range.",valueSet:"http://hl7.org/fhir/ValueSet/referencerange-meaning"}},{id:"Observation.referenceRange.appliesTo",path:"Observation.referenceRange.appliesTo",definition:'Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an "AND" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.',min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Codes identifying the population the reference range applies to.",valueSet:"http://hl7.org/fhir/ValueSet/referencerange-appliesto"}},{id:"Observation.referenceRange.age",path:"Observation.referenceRange.age",definition:"The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",min:0,max:"1",type:[{code:"Range"}]},{id:"Observation.referenceRange.text",path:"Observation.referenceRange.text",definition:'Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of "Negative" or a list or table of "normals".',min:0,max:"1",type:[{code:"string"}]},{id:"Observation.hasMember",path:"Observation.hasMember",definition:"This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Observation","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse","http://hl7.org/fhir/StructureDefinition/MolecularSequence"]}]},{id:"Observation.derivedFrom",path:"Observation.derivedFrom",definition:"The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/DocumentReference","http://hl7.org/fhir/StructureDefinition/ImagingStudy","http://hl7.org/fhir/StructureDefinition/Media","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse","http://hl7.org/fhir/StructureDefinition/Observation","http://hl7.org/fhir/StructureDefinition/MolecularSequence"]}]},{id:"Observation.component",path:"Observation.component",definition:"Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Observation.component.id",path:"Observation.component.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Observation.component.extension",path:"Observation.component.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.component.modifierExtension",path:"Observation.component.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.component.code",path:"Observation.component.code",definition:'Describes what was observed. Sometimes this is called the observation "code".',min:1,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Codes identifying names of simple observations.",valueSet:"http://hl7.org/fhir/ValueSet/observation-codes"}},{id:"Observation.component.value[x]",path:"Observation.component.value[x]",definition:"The information determined as a result of making the observation, if the information has a simple value.",min:0,max:"1",type:[{code:"Quantity"},{code:"CodeableConcept"},{code:"string"},{code:"boolean"},{code:"integer"},{code:"Range"},{code:"Ratio"},{code:"SampledData"},{code:"time"},{code:"dateTime"},{code:"Period"}]},{id:"Observation.component.dataAbsentReason",path:"Observation.component.dataAbsentReason",definition:"Provides a reason why the expected value in the element Observation.component.value[x] is missing.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Codes specifying why the result (`Observation.value[x]`) is missing.",valueSet:"http://hl7.org/fhir/ValueSet/data-absent-reason"}},{id:"Observation.component.interpretation",path:"Observation.component.interpretation",definition:"A categorical assessment of an observation value. For example, high, low, normal.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Codes identifying interpretations of observations.",valueSet:"http://hl7.org/fhir/ValueSet/observation-interpretation"}},{id:"Observation.component.referenceRange",path:"Observation.component.referenceRange",definition:"Guidance on how to interpret the value by comparison to a normal or recommended range.",min:0,max:"*"}]}},{resourceType:"StructureDefinition",id:"Organization",name:"Organization",description:"A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc.",type:"Organization",snapshot:{element:[{id:"Organization",path:"Organization",definition:"A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc.",min:0,max:"*"},{id:"Organization.id",path:"Organization.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Organization.meta",path:"Organization.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"Organization.implicitRules",path:"Organization.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"Organization.language",path:"Organization.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"Organization.text",path:"Organization.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"Organization.contained",path:"Organization.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"Organization.extension",path:"Organization.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Organization.modifierExtension",path:"Organization.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Organization.identifier",path:"Organization.identifier",definition:"Identifier for the organization that is used to identify the organization across multiple disparate systems.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Organization.active",path:"Organization.active",definition:"Whether the organization's record is still in active use.",min:0,max:"1",type:[{code:"boolean"}]},{id:"Organization.type",path:"Organization.type",definition:"The kind(s) of organization that this is.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Used to categorize the organization.",valueSet:"http://hl7.org/fhir/ValueSet/organization-type"}},{id:"Organization.name",path:"Organization.name",definition:"A name associated with the organization.",min:0,max:"1",type:[{code:"string"}]},{id:"Organization.alias",path:"Organization.alias",definition:"A list of alternate names that the organization is known as, or was known as in the past.",min:0,max:"*",type:[{code:"string"}]},{id:"Organization.telecom",path:"Organization.telecom",definition:"A contact detail for the organization.",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Organization.address",path:"Organization.address",definition:"An address for the organization.",min:0,max:"*",type:[{code:"Address"}]},{id:"Organization.partOf",path:"Organization.partOf",definition:"The organization of which this organization forms a part.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Organization.contact",path:"Organization.contact",definition:"Contact for the organization for a certain purpose.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Organization.contact.id",path:"Organization.contact.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Organization.contact.extension",path:"Organization.contact.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Organization.contact.modifierExtension",path:"Organization.contact.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Organization.contact.purpose",path:"Organization.contact.purpose",definition:"Indicates a purpose for which the contact can be reached.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"The purpose for which you would contact a contact party.",valueSet:"http://hl7.org/fhir/ValueSet/contactentity-type"}},{id:"Organization.contact.name",path:"Organization.contact.name",definition:"A name associated with the contact.",min:0,max:"1",type:[{code:"HumanName"}]},{id:"Organization.contact.telecom",path:"Organization.contact.telecom",definition:"A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Organization.contact.address",path:"Organization.contact.address",definition:"Visiting or postal addresses for the contact.",min:0,max:"1",type:[{code:"Address"}]},{id:"Organization.endpoint",path:"Organization.endpoint",definition:"Technical endpoints providing access to services operated for the organization.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Endpoint"]}]}]}},{resourceType:"StructureDefinition",id:"Patient",name:"Patient",description:"Demographics and other administrative information about an individual or animal receiving care or other health-related services.",type:"Patient",snapshot:{element:[{id:"Patient",path:"Patient",definition:"Demographics and other administrative information about an individual or animal receiving care or other health-related services.",min:0,max:"*"},{id:"Patient.id",path:"Patient.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Patient.meta",path:"Patient.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"Patient.implicitRules",path:"Patient.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"Patient.language",path:"Patient.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"Patient.text",path:"Patient.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"Patient.contained",path:"Patient.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"Patient.extension",path:"Patient.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.modifierExtension",path:"Patient.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.identifier",path:"Patient.identifier",definition:"An identifier for this patient.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Patient.active",path:"Patient.active",definition:"Whether this patient record is in active use. \nMany systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.\n\nIt is often used to filter patient lists to exclude inactive patients\n\nDeceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.",min:0,max:"1",type:[{code:"boolean"}]},{id:"Patient.name",path:"Patient.name",definition:"A name associated with the individual.",min:0,max:"*",type:[{code:"HumanName"}]},{id:"Patient.telecom",path:"Patient.telecom",definition:"A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Patient.gender",path:"Patient.gender",definition:"Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.",min:0,max:"1",type:[{code:"code"}],binding:{description:"The gender of a person used for administrative purposes.",valueSet:"http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"}},{id:"Patient.birthDate",path:"Patient.birthDate",definition:"The date of birth for the individual.",min:0,max:"1",type:[{code:"date"}]},{id:"Patient.deceased[x]",path:"Patient.deceased[x]",definition:"Indicates if the individual is deceased or not.",min:0,max:"1",type:[{code:"boolean"},{code:"dateTime"}]},{id:"Patient.address",path:"Patient.address",definition:"An address for the individual.",min:0,max:"*",type:[{code:"Address"}]},{id:"Patient.maritalStatus",path:"Patient.maritalStatus",definition:"This field contains a patient's most recent marital (civil) status.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"The domestic partnership status of a person.",valueSet:"http://hl7.org/fhir/ValueSet/marital-status"}},{id:"Patient.multipleBirth[x]",path:"Patient.multipleBirth[x]",definition:"Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).",min:0,max:"1",type:[{code:"boolean"},{code:"integer"}]},{id:"Patient.photo",path:"Patient.photo",definition:"Image of the patient.",min:0,max:"*",type:[{code:"Attachment"}]},{id:"Patient.contact",path:"Patient.contact",definition:"A contact party (e.g. guardian, partner, friend) for the patient.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Patient.contact.id",path:"Patient.contact.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Patient.contact.extension",path:"Patient.contact.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.contact.modifierExtension",path:"Patient.contact.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.contact.relationship",path:"Patient.contact.relationship",definition:"The nature of the relationship between the patient and the contact person.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"The nature of the relationship between a patient and a contact person for that patient.",valueSet:"http://hl7.org/fhir/ValueSet/patient-contactrelationship"}},{id:"Patient.contact.name",path:"Patient.contact.name",definition:"A name associated with the contact person.",min:0,max:"1",type:[{code:"HumanName"}]},{id:"Patient.contact.telecom",path:"Patient.contact.telecom",definition:"A contact detail for the person, e.g. a telephone number or an email address.",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Patient.contact.address",path:"Patient.contact.address",definition:"Address for the contact person.",min:0,max:"1",type:[{code:"Address"}]},{id:"Patient.contact.gender",path:"Patient.contact.gender",definition:"Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.",min:0,max:"1",type:[{code:"code"}],binding:{description:"The gender of a person used for administrative purposes.",valueSet:"http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"}},{id:"Patient.contact.organization",path:"Patient.contact.organization",definition:"Organization on behalf of which the contact is acting or for which the contact is working.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Patient.contact.period",path:"Patient.contact.period",definition:"The period during which this contact person or organization is valid to be contacted relating to this patient.",min:0,max:"1",type:[{code:"Period"}]},{id:"Patient.communication",path:"Patient.communication",definition:"A language which may be used to communicate with the patient about his or her health.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Patient.communication.id",path:"Patient.communication.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Patient.communication.extension",path:"Patient.communication.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.communication.modifierExtension",path:"Patient.communication.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.communication.language",path:"Patient.communication.language",definition:'The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. "en" for English, or "en-US" for American English versus "en-EN" for England English.',min:1,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"Patient.communication.preferred",path:"Patient.communication.preferred",definition:"Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).",min:0,max:"1",type:[{code:"boolean"}]},{id:"Patient.generalPractitioner",path:"Patient.generalPractitioner",definition:"Patient's nominated care provider.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole"]}]},{id:"Patient.managingOrganization",path:"Patient.managingOrganization",definition:"Organization that is the custodian of the patient record.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Patient.link",path:"Patient.link",definition:"Link to another patient resource that concerns the same actual patient.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Patient.link.id",path:"Patient.link.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Patient.link.extension",path:"Patient.link.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.link.modifierExtension",path:"Patient.link.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.link.other",path:"Patient.link.other",definition:"The other patient resource that the link refers to.",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/RelatedPerson"]}]},{id:"Patient.link.type",path:"Patient.link.type",definition:"The type of link between this patient resource and another patient resource.",min:1,max:"1",type:[{code:"code"}],binding:{description:"The type of link between this patient resource and another patient resource.",valueSet:"http://hl7.org/fhir/ValueSet/link-type|4.0.1"}}]}},{resourceType:"StructureDefinition",id:"Practitioner",name:"Practitioner",description:"A person who is directly or indirectly involved in the provisioning of healthcare.",type:"Practitioner",snapshot:{element:[{id:"Practitioner",path:"Practitioner",definition:"A person who is directly or indirectly involved in the provisioning of healthcare.",min:0,max:"*"},{id:"Practitioner.id",path:"Practitioner.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Practitioner.meta",path:"Practitioner.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"Practitioner.implicitRules",path:"Practitioner.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"Practitioner.language",path:"Practitioner.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"Practitioner.text",path:"Practitioner.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"Practitioner.contained",path:"Practitioner.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"Practitioner.extension",path:"Practitioner.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Practitioner.modifierExtension",path:"Practitioner.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Practitioner.identifier",path:"Practitioner.identifier",definition:"An identifier that applies to this person in this role.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Practitioner.active",path:"Practitioner.active",definition:"Whether this practitioner's record is in active use.",min:0,max:"1",type:[{code:"boolean"}]},{id:"Practitioner.name",path:"Practitioner.name",definition:"The name(s) associated with the practitioner.",min:0,max:"*",type:[{code:"HumanName"}]},{id:"Practitioner.telecom",path:"Practitioner.telecom",definition:"A contact detail for the practitioner, e.g. a telephone number or an email address.",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Practitioner.address",path:"Practitioner.address",definition:"Address(es) of the practitioner that are not role specific (typically home address). \rWork addresses are not typically entered in this property as they are usually role dependent.",min:0,max:"*",type:[{code:"Address"}]},{id:"Practitioner.gender",path:"Practitioner.gender",definition:"Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.",min:0,max:"1",type:[{code:"code"}],binding:{description:"The gender of a person used for administrative purposes.",valueSet:"http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"}},{id:"Practitioner.birthDate",path:"Practitioner.birthDate",definition:"The date of birth for the practitioner.",min:0,max:"1",type:[{code:"date"}]},{id:"Practitioner.photo",path:"Practitioner.photo",definition:"Image of the person.",min:0,max:"*",type:[{code:"Attachment"}]},{id:"Practitioner.qualification",path:"Practitioner.qualification",definition:"The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner. For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Practitioner.qualification.id",path:"Practitioner.qualification.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Practitioner.qualification.extension",path:"Practitioner.qualification.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Practitioner.qualification.modifierExtension",path:"Practitioner.qualification.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Practitioner.qualification.identifier",path:"Practitioner.qualification.identifier",definition:"An identifier that applies to this person's qualification in this role.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Practitioner.qualification.code",path:"Practitioner.qualification.code",definition:"Coded representation of the qualification.",min:1,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Specific qualification the practitioner has to provide a service.",valueSet:"http://terminology.hl7.org/ValueSet/v2-2.7-0360"}},{id:"Practitioner.qualification.period",path:"Practitioner.qualification.period",definition:"Period during which the qualification is valid.",min:0,max:"1",type:[{code:"Period"}]},{id:"Practitioner.qualification.issuer",path:"Practitioner.qualification.issuer",definition:"Organization that regulates and issues the qualification.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Practitioner.communication",path:"Practitioner.communication",definition:"A language the practitioner can use in patient communication.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}}]}},{resourceType:"StructureDefinition",id:"Questionnaire",name:"Questionnaire",description:"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.",type:"Questionnaire",snapshot:{element:[{id:"Questionnaire",path:"Questionnaire",definition:"A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.",min:0,max:"*"},{id:"Questionnaire.id",path:"Questionnaire.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.meta",path:"Questionnaire.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"Questionnaire.implicitRules",path:"Questionnaire.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"Questionnaire.language",path:"Questionnaire.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"Questionnaire.text",path:"Questionnaire.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"Questionnaire.contained",path:"Questionnaire.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"Questionnaire.extension",path:"Questionnaire.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.modifierExtension",path:"Questionnaire.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.url",path:"Questionnaire.url",definition:"An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.",min:0,max:"1",type:[{code:"uri"}]},{id:"Questionnaire.identifier",path:"Questionnaire.identifier",definition:"A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Questionnaire.version",path:"Questionnaire.version",definition:"The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.name",path:"Questionnaire.name",definition:"A natural language name identifying the questionnaire. This name should be usable as an identifier for the module by machine processing applications such as code generation.",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.title",path:"Questionnaire.title",definition:"A short, descriptive, user-friendly title for the questionnaire.",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.derivedFrom",path:"Questionnaire.derivedFrom",definition:"The URL of a Questionnaire that this Questionnaire is based on.",min:0,max:"*",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/Questionnaire"]}]},{id:"Questionnaire.status",path:"Questionnaire.status",definition:"The status of this questionnaire. Enables tracking the life-cycle of the content.",min:1,max:"1",type:[{code:"code"}],binding:{description:"The lifecycle status of an artifact.",valueSet:"http://hl7.org/fhir/ValueSet/publication-status|4.0.1"}},{id:"Questionnaire.experimental",path:"Questionnaire.experimental",definition:"A Boolean value to indicate that this questionnaire is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.subjectType",path:"Questionnaire.subjectType",definition:"The types of subjects that can be the subject of responses created for the questionnaire.",min:0,max:"*",type:[{code:"code"}],binding:{description:"One of the resource types defined as part of this version of FHIR.",valueSet:"http://hl7.org/fhir/ValueSet/resource-types|4.0.1"}},{id:"Questionnaire.date",path:"Questionnaire.date",definition:"The date (and optionally time) when the questionnaire was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the questionnaire changes.",min:0,max:"1",type:[{code:"dateTime"}]},{id:"Questionnaire.publisher",path:"Questionnaire.publisher",definition:"The name of the organization or individual that published the questionnaire.",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.contact",path:"Questionnaire.contact",definition:"Contact details to assist a user in finding and communicating with the publisher.",min:0,max:"*",type:[{code:"ContactDetail"}]},{id:"Questionnaire.description",path:"Questionnaire.description",definition:"A free text natural language description of the questionnaire from a consumer's perspective.",min:0,max:"1",type:[{code:"markdown"}]},{id:"Questionnaire.useContext",path:"Questionnaire.useContext",definition:"The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate questionnaire instances.",min:0,max:"*",type:[{code:"UsageContext"}]},{id:"Questionnaire.jurisdiction",path:"Questionnaire.jurisdiction",definition:"A legal or geographic region in which the questionnaire is intended to be used.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Countries and regions within which this artifact is targeted for use.",valueSet:"http://hl7.org/fhir/ValueSet/jurisdiction"}},{id:"Questionnaire.purpose",path:"Questionnaire.purpose",definition:"Explanation of why this questionnaire is needed and why it has been designed as it has.",min:0,max:"1",type:[{code:"markdown"}]},{id:"Questionnaire.copyright",path:"Questionnaire.copyright",definition:"A copyright statement relating to the questionnaire and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the questionnaire.",min:0,max:"1",type:[{code:"markdown"}]},{id:"Questionnaire.approvalDate",path:"Questionnaire.approvalDate",definition:"The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",min:0,max:"1",type:[{code:"date"}]},{id:"Questionnaire.lastReviewDate",path:"Questionnaire.lastReviewDate",definition:"The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",min:0,max:"1",type:[{code:"date"}]},{id:"Questionnaire.effectivePeriod",path:"Questionnaire.effectivePeriod",definition:"The period during which the questionnaire content was or is planned to be in active use.",min:0,max:"1",type:[{code:"Period"}]},{id:"Questionnaire.code",path:"Questionnaire.code",definition:"An identifier for this question or group of questions in a particular terminology such as LOINC.",min:0,max:"*",type:[{code:"Coding"}],binding:{description:"Codes for questionnaires, groups and individual questions.",valueSet:"http://hl7.org/fhir/ValueSet/questionnaire-questions"}},{id:"Questionnaire.item",path:"Questionnaire.item",definition:"A particular question, question grouping or display text that is part of the questionnaire.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Questionnaire.item.id",path:"Questionnaire.item.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.item.extension",path:"Questionnaire.item.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.modifierExtension",path:"Questionnaire.item.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.linkId",path:"Questionnaire.item.linkId",definition:"An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.",min:1,max:"1",type:[{code:"string"}]},{id:"Questionnaire.item.definition",path:"Questionnaire.item.definition",definition:"This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\n\n* code (ElementDefinition.code) \n* type (ElementDefinition.type) \n* required (ElementDefinition.min) \n* repeats (ElementDefinition.max) \n* maxLength (ElementDefinition.maxLength) \n* answerValueSet (ElementDefinition.binding)\n* options (ElementDefinition.binding).",min:0,max:"1",type:[{code:"uri"}]},{id:"Questionnaire.item.code",path:"Questionnaire.item.code",definition:"A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).",min:0,max:"*",type:[{code:"Coding"}],binding:{description:"Codes for questionnaires, groups and individual questions.",valueSet:"http://hl7.org/fhir/ValueSet/questionnaire-questions"}},{id:"Questionnaire.item.prefix",path:"Questionnaire.item.prefix",definition:"A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.item.text",path:"Questionnaire.item.text",definition:"The name of a section, the text of a question or text content for a display item.",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.item.type",path:"Questionnaire.item.type",definition:"The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).",min:1,max:"1",type:[{code:"code"}],binding:{description:"Distinguishes groups from questions and display text and indicates data type for questions.",valueSet:"http://hl7.org/fhir/ValueSet/item-type|4.0.1"}},{id:"Questionnaire.item.enableWhen",path:"Questionnaire.item.enableWhen",definition:"A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Questionnaire.item.enableWhen.id",path:"Questionnaire.item.enableWhen.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.item.enableWhen.extension",path:"Questionnaire.item.enableWhen.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.enableWhen.modifierExtension",path:"Questionnaire.item.enableWhen.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.enableWhen.question",path:"Questionnaire.item.enableWhen.question",definition:"The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.",min:1,max:"1",type:[{code:"string"}]},{id:"Questionnaire.item.enableWhen.operator",path:"Questionnaire.item.enableWhen.operator",definition:"Specifies the criteria by which the question is enabled.",min:1,max:"1",type:[{code:"code"}],binding:{description:"The criteria by which a question is enabled.",valueSet:"http://hl7.org/fhir/ValueSet/questionnaire-enable-operator|4.0.1"}},{id:"Questionnaire.item.enableWhen.answer[x]",path:"Questionnaire.item.enableWhen.answer[x]",definition:"A value that the referenced question is tested using the specified operator in order for the item to be enabled.",min:1,max:"1",type:[{code:"boolean"},{code:"decimal"},{code:"integer"},{code:"date"},{code:"dateTime"},{code:"time"},{code:"string"},{code:"Coding"},{code:"Quantity"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}],binding:{description:"Allowed values to answer questions.",valueSet:"http://hl7.org/fhir/ValueSet/questionnaire-answers"}},{id:"Questionnaire.item.enableBehavior",path:"Questionnaire.item.enableBehavior",definition:"Controls how multiple enableWhen values are interpreted - whether all or any must be true.",min:0,max:"1",type:[{code:"code"}],binding:{description:"Controls how multiple enableWhen values are interpreted - whether all or any must be true.",valueSet:"http://hl7.org/fhir/ValueSet/questionnaire-enable-behavior|4.0.1"}},{id:"Questionnaire.item.required",path:"Questionnaire.item.required",definition:'An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.',min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.item.repeats",path:"Questionnaire.item.repeats",definition:"An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.item.readOnly",path:"Questionnaire.item.readOnly",definition:"An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.item.maxLength",path:"Questionnaire.item.maxLength",definition:'The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.',min:0,max:"1",type:[{code:"integer"}]},{id:"Questionnaire.item.answerValueSet",path:"Questionnaire.item.answerValueSet",definition:'A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.',min:0,max:"1",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/ValueSet"]}]},{id:"Questionnaire.item.answerOption",path:"Questionnaire.item.answerOption",definition:'One of the permitted answers for a "choice" or "open-choice" question.',min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Questionnaire.item.answerOption.id",path:"Questionnaire.item.answerOption.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.item.answerOption.extension",path:"Questionnaire.item.answerOption.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.answerOption.modifierExtension",path:"Questionnaire.item.answerOption.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.answerOption.value[x]",path:"Questionnaire.item.answerOption.value[x]",definition:"A potential answer that's allowed as the answer to this question.",min:1,max:"1",type:[{code:"integer"},{code:"date"},{code:"time"},{code:"string"},{code:"Coding"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}],binding:{description:"Allowed values to answer questions.",valueSet:"http://hl7.org/fhir/ValueSet/questionnaire-answers"}},{id:"Questionnaire.item.answerOption.initialSelected",path:"Questionnaire.item.answerOption.initialSelected",definition:"Indicates whether the answer value is selected when the list of possible answers is initially shown.",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.item.initial",path:"Questionnaire.item.initial",definition:"One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Questionnaire.item.initial.id",path:"Questionnaire.item.initial.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.item.initial.extension",path:"Questionnaire.item.initial.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.initial.modifierExtension",path:"Questionnaire.item.initial.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.initial.value[x]",path:"Questionnaire.item.initial.value[x]",definition:"The actual value to for an initial answer.",min:1,max:"1",type:[{code:"boolean"},{code:"decimal"},{code:"integer"},{code:"date"},{code:"dateTime"},{code:"time"},{code:"string"},{code:"uri"},{code:"Attachment"},{code:"Coding"},{code:"Quantity"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}],binding:{description:"Allowed values to answer questions.",valueSet:"http://hl7.org/fhir/ValueSet/questionnaire-answers"}},{id:"Questionnaire.item.item",path:"Questionnaire.item.item",definition:"Text, questions and other groups to be nested beneath a question or group.",min:0,max:"*"}]}},{resourceType:"StructureDefinition",id:"ServiceRequest",name:"ServiceRequest",description:"A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.",type:"ServiceRequest",snapshot:{element:[{id:"ServiceRequest",path:"ServiceRequest",definition:"A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.",min:0,max:"*"},{id:"ServiceRequest.id",path:"ServiceRequest.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"ServiceRequest.meta",path:"ServiceRequest.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"ServiceRequest.implicitRules",path:"ServiceRequest.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"ServiceRequest.language",path:"ServiceRequest.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"ServiceRequest.text",path:"ServiceRequest.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"ServiceRequest.contained",path:"ServiceRequest.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"ServiceRequest.extension",path:"ServiceRequest.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"ServiceRequest.modifierExtension",path:"ServiceRequest.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"ServiceRequest.identifier",path:"ServiceRequest.identifier",definition:"Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"ServiceRequest.instantiatesCanonical",path:"ServiceRequest.instantiatesCanonical",definition:"The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.",min:0,max:"*",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/ActivityDefinition","http://hl7.org/fhir/StructureDefinition/PlanDefinition"]}]},{id:"ServiceRequest.instantiatesUri",path:"ServiceRequest.instantiatesUri",definition:"The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.",min:0,max:"*",type:[{code:"uri"}]},{id:"ServiceRequest.basedOn",path:"ServiceRequest.basedOn",definition:"Plan/proposal/order fulfilled by this request.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/CarePlan","http://hl7.org/fhir/StructureDefinition/ServiceRequest","http://hl7.org/fhir/StructureDefinition/MedicationRequest"]}]},{id:"ServiceRequest.replaces",path:"ServiceRequest.replaces",definition:"The request takes the place of the referenced completed or terminated request(s).",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"ServiceRequest.requisition",path:"ServiceRequest.requisition",definition:"A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.",min:0,max:"1",type:[{code:"Identifier"}]},{id:"ServiceRequest.status",path:"ServiceRequest.status",definition:"The status of the order.",min:1,max:"1",type:[{code:"code"}],binding:{description:"The status of a service order.",valueSet:"http://hl7.org/fhir/ValueSet/request-status|4.0.1"}},{id:"ServiceRequest.intent",path:"ServiceRequest.intent",definition:"Whether the request is a proposal, plan, an original order or a reflex order.",min:1,max:"1",type:[{code:"code"}],binding:{description:"The kind of service request.",valueSet:"http://hl7.org/fhir/ValueSet/request-intent|4.0.1"}},{id:"ServiceRequest.category",path:"ServiceRequest.category",definition:'A code that classifies the service for searching, sorting and display purposes (e.g. "Surgical Procedure").',min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Classification of the requested service.",valueSet:"http://hl7.org/fhir/ValueSet/servicerequest-category"}},{id:"ServiceRequest.priority",path:"ServiceRequest.priority",definition:"Indicates how quickly the ServiceRequest should be addressed with respect to other requests.",min:0,max:"1",type:[{code:"code"}],binding:{description:"Identifies the level of importance to be assigned to actioning the request.",valueSet:"http://hl7.org/fhir/ValueSet/request-priority|4.0.1"}},{id:"ServiceRequest.doNotPerform",path:"ServiceRequest.doNotPerform",definition:"Set this to true if the record is saying that the service/procedure should NOT be performed.",min:0,max:"1",type:[{code:"boolean"}]},{id:"ServiceRequest.code",path:"ServiceRequest.code",definition:"A code that identifies a particular service (i.e., procedure, diagnostic investigation, or panel of investigations) that have been requested.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is (preferred)[http://build.fhir.org/terminologies.html#preferred] and a valueset using LOINC Order codes is available [here](valueset-diagnostic-requests.html).",valueSet:"http://hl7.org/fhir/ValueSet/procedure-code"}},{id:"ServiceRequest.orderDetail",path:"ServiceRequest.orderDetail",definition:"Additional details and instructions about the how the services are to be delivered. For example, and order for a urinary catheter may have an order detail for an external or indwelling catheter, or an order for a bandage may require additional instructions specifying how the bandage should be applied.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Codified order entry details which are based on order context.",valueSet:"http://hl7.org/fhir/ValueSet/servicerequest-orderdetail"}},{id:"ServiceRequest.quantity[x]",path:"ServiceRequest.quantity[x]",definition:"An amount of service being requested which can be a quantity ( for example $1,500 home modification), a ratio ( for example, 20 half day visits per month), or a range (2.0 to 1.8 Gy per fraction).",min:0,max:"1",type:[{code:"Quantity"},{code:"Ratio"},{code:"Range"}]},{id:"ServiceRequest.subject",path:"ServiceRequest.subject",definition:"On whom or what the service is to be performed. This is usually a human patient, but can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Location","http://hl7.org/fhir/StructureDefinition/Device"]}]},{id:"ServiceRequest.encounter",path:"ServiceRequest.encounter",definition:"An encounter that provides additional information about the healthcare context in which this request is made.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Encounter"]}]},{id:"ServiceRequest.occurrence[x]",path:"ServiceRequest.occurrence[x]",definition:"The date/time at which the requested service should occur.",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"},{code:"Timing"}]},{id:"ServiceRequest.asNeeded[x]",path:"ServiceRequest.asNeeded[x]",definition:'If a CodeableConcept is present, it indicates the pre-condition for performing the service. For example "pain", "on flare-up", etc.',min:0,max:"1",type:[{code:"boolean"},{code:"CodeableConcept"}],binding:{description:'A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example "pain", "on flare-up", etc.',valueSet:"http://hl7.org/fhir/ValueSet/medication-as-needed-reason"}},{id:"ServiceRequest.authoredOn",path:"ServiceRequest.authoredOn",definition:"When the request transitioned to being actionable.",min:0,max:"1",type:[{code:"dateTime"}]},{id:"ServiceRequest.requester",path:"ServiceRequest.requester",definition:"The individual who initiated the request and has responsibility for its activation.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/RelatedPerson","http://hl7.org/fhir/StructureDefinition/Device"]}]},{id:"ServiceRequest.performerType",path:"ServiceRequest.performerType",definition:"Desired type of performer for doing the requested service.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:'Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.',valueSet:"http://hl7.org/fhir/ValueSet/participant-role"}},{id:"ServiceRequest.performer",path:"ServiceRequest.performer",definition:"The desired performer for doing the requested service. For example, the surgeon, dermatopathologist, endoscopist, etc.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/CareTeam","http://hl7.org/fhir/StructureDefinition/HealthcareService","http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/RelatedPerson"]}]},{id:"ServiceRequest.locationCode",path:"ServiceRequest.locationCode",definition:"The preferred location(s) where the procedure should actually happen in coded or free text form. E.g. at home or nursing day care center.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"A location type where services are delivered.",valueSet:"http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"}},{id:"ServiceRequest.locationReference",path:"ServiceRequest.locationReference",definition:"A reference to the the preferred location(s) where the procedure should actually happen. E.g. at home or nursing day care center.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"ServiceRequest.reasonCode",path:"ServiceRequest.reasonCode",definition:"An explanation or justification for why this service is being requested in coded or textual form. This is often for billing purposes. May relate to the resources referred to in `supportingInfo`.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Diagnosis or problem codes justifying the reason for requesting the service investigation.",valueSet:"http://hl7.org/fhir/ValueSet/procedure-reason"}},{id:"ServiceRequest.reasonReference",path:"ServiceRequest.reasonReference",definition:"Indicates another resource that provides a justification for why this service is being requested. May relate to the resources referred to in `supportingInfo`.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Condition","http://hl7.org/fhir/StructureDefinition/Observation","http://hl7.org/fhir/StructureDefinition/DiagnosticReport","http://hl7.org/fhir/StructureDefinition/DocumentReference"]}]},{id:"ServiceRequest.insurance",path:"ServiceRequest.insurance",definition:"Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be needed for delivering the requested service.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Coverage","http://hl7.org/fhir/StructureDefinition/ClaimResponse"]}]},{id:"ServiceRequest.supportingInfo",path:"ServiceRequest.supportingInfo",definition:'Additional clinical information about the patient or specimen that may influence the services or their interpretations. This information includes diagnosis, clinical findings and other observations. In laboratory ordering these are typically referred to as "ask at order entry questions (AOEs)". This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example, reporting the amount of inspired oxygen for blood gas measurements.',min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}]},{id:"ServiceRequest.specimen",path:"ServiceRequest.specimen",definition:"One or more specimens that the laboratory procedure will use.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Specimen"]}]},{id:"ServiceRequest.bodySite",path:"ServiceRequest.bodySite",definition:"Anatomic location where the procedure should be performed. This is the target site.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Codes describing anatomical locations. May include laterality.",valueSet:"http://hl7.org/fhir/ValueSet/body-site"}},{id:"ServiceRequest.note",path:"ServiceRequest.note",definition:"Any other notes and comments made about the service request. For example, internal billing notes.",min:0,max:"*",type:[{code:"Annotation"}]},{id:"ServiceRequest.patientInstruction",path:"ServiceRequest.patientInstruction",definition:"Instructions in terms that are understood by the patient or consumer.",min:0,max:"1",type:[{code:"string"}]},{id:"ServiceRequest.relevantHistory",path:"ServiceRequest.relevantHistory",definition:"Key events in the history of the request.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Provenance"]}]}]}},{resourceType:"StructureDefinition",id:"Specimen",name:"Specimen",description:"A sample to be used for analysis.",type:"Specimen",snapshot:{element:[{id:"Specimen",path:"Specimen",definition:"A sample to be used for analysis.",min:0,max:"*"},{id:"Specimen.id",path:"Specimen.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Specimen.meta",path:"Specimen.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"Specimen.implicitRules",path:"Specimen.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"Specimen.language",path:"Specimen.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}],binding:{description:"A human language.",valueSet:"http://hl7.org/fhir/ValueSet/languages"}},{id:"Specimen.text",path:"Specimen.text",definition:'A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.',min:0,max:"1",type:[{code:"Narrative"}]},{id:"Specimen.contained",path:"Specimen.contained",definition:"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",min:0,max:"*",type:[{code:"Resource"}]},{id:"Specimen.extension",path:"Specimen.extension",definition:"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.modifierExtension",path:"Specimen.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.identifier",path:"Specimen.identifier",definition:"Id for specimen.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Specimen.accessionIdentifier",path:"Specimen.accessionIdentifier",definition:"The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.",min:0,max:"1",type:[{code:"Identifier"}]},{id:"Specimen.status",path:"Specimen.status",definition:"The availability of the specimen.",min:0,max:"1",type:[{code:"code"}],binding:{description:"Codes providing the status/availability of a specimen.",valueSet:"http://hl7.org/fhir/ValueSet/specimen-status|4.0.1"}},{id:"Specimen.type",path:"Specimen.type",definition:"The kind of material that forms the specimen.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"The type of the specimen.",valueSet:"http://terminology.hl7.org/ValueSet/v2-0487"}},{id:"Specimen.subject",path:"Specimen.subject",definition:"Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/Substance","http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"Specimen.receivedTime",path:"Specimen.receivedTime",definition:"Time when specimen was received for processing or testing.",min:0,max:"1",type:[{code:"dateTime"}]},{id:"Specimen.parent",path:"Specimen.parent",definition:"Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Specimen"]}]},{id:"Specimen.request",path:"Specimen.request",definition:"Details concerning a service request that required a specimen to be collected.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"Specimen.collection",path:"Specimen.collection",definition:"Details concerning the specimen collection.",min:0,max:"1",type:[{code:"BackboneElement"}]},{id:"Specimen.collection.id",path:"Specimen.collection.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Specimen.collection.extension",path:"Specimen.collection.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.collection.modifierExtension",path:"Specimen.collection.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.collection.collector",path:"Specimen.collection.collector",definition:"Person who collected the specimen.",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole"]}]},{id:"Specimen.collection.collected[x]",path:"Specimen.collection.collected[x]",definition:"Time when specimen was collected from subject - the physiologically relevant time.",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"}]},{id:"Specimen.collection.duration",path:"Specimen.collection.duration",definition:"The span of time over which the collection of a specimen occurred.",min:0,max:"1",type:[{code:"Duration"}]},{id:"Specimen.collection.quantity",path:"Specimen.collection.quantity",definition:"The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Specimen.collection.method",path:"Specimen.collection.method",definition:"A coded value specifying the technique that is used to perform the procedure.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"The technique that is used to perform the procedure.",valueSet:"http://hl7.org/fhir/ValueSet/specimen-collection-method"}},{id:"Specimen.collection.bodySite",path:"Specimen.collection.bodySite",definition:"Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Codes describing anatomical locations. May include laterality.",valueSet:"http://hl7.org/fhir/ValueSet/body-site"}},{id:"Specimen.collection.fastingStatus[x]",path:"Specimen.collection.fastingStatus[x]",definition:"Abstinence or reduction from some or all food, drink, or both, for a period of time prior to sample collection.",min:0,max:"1",type:[{code:"CodeableConcept"},{code:"Duration"}],binding:{description:"Codes describing the fasting status of the patient.",valueSet:"http://terminology.hl7.org/ValueSet/v2-0916"}},{id:"Specimen.processing",path:"Specimen.processing",definition:"Details concerning processing and processing steps for the specimen.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Specimen.processing.id",path:"Specimen.processing.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Specimen.processing.extension",path:"Specimen.processing.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.processing.modifierExtension",path:"Specimen.processing.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.processing.description",path:"Specimen.processing.description",definition:"Textual description of procedure.",min:0,max:"1",type:[{code:"string"}]},{id:"Specimen.processing.procedure",path:"Specimen.processing.procedure",definition:"A coded value specifying the procedure used to process the specimen.",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Type indicating the technique used to process the specimen.",valueSet:"http://hl7.org/fhir/ValueSet/specimen-processing-procedure"}},{id:"Specimen.processing.additive",path:"Specimen.processing.additive",definition:"Material used in the processing step.",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Substance"]}]},{id:"Specimen.processing.time[x]",path:"Specimen.processing.time[x]",definition:"A record of the time or period when the specimen processing occurred. For example the time of sample fixation or the period of time the sample was in formalin.",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"}]},{id:"Specimen.container",path:"Specimen.container",definition:"The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Specimen.container.id",path:"Specimen.container.id",definition:"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Specimen.container.extension",path:"Specimen.container.extension",definition:"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.container.modifierExtension",path:"Specimen.container.modifierExtension",definition:"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.container.identifier",path:"Specimen.container.identifier",definition:"Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances.",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Specimen.container.description",path:"Specimen.container.description",definition:"Textual description of the container.",min:0,max:"1",type:[{code:"string"}]},{id:"Specimen.container.type",path:"Specimen.container.type",definition:"The type of container associated with the specimen (e.g. slide, aliquot, etc.).",min:0,max:"1",type:[{code:"CodeableConcept"}],binding:{description:"Type of specimen container.",valueSet:"http://hl7.org/fhir/ValueSet/specimen-container-type"}},{id:"Specimen.container.capacity",path:"Specimen.container.capacity",definition:"The capacity (volume or other measure) the container may contain.",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Specimen.container.specimenQuantity",path:"Specimen.container.specimenQuantity",definition:"The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Specimen.container.additive[x]",path:"Specimen.container.additive[x]",definition:"Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.",min:0,max:"1",type:[{code:"CodeableConcept"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Substance"]}],binding:{description:"Substance added to specimen container.",valueSet:"http://terminology.hl7.org/ValueSet/v2-0371"}},{id:"Specimen.condition",path:"Specimen.condition",definition:"A mode or state of being that describes the nature of the specimen.",min:0,max:"*",type:[{code:"CodeableConcept"}],binding:{description:"Codes describing the state of the specimen.",valueSet:"http://terminology.hl7.org/ValueSet/v2-0493"}},{id:"Specimen.note",path:"Specimen.note",definition:"To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen).",min:0,max:"*",type:[{code:"Annotation"}]}]}},{resourceType:"StructureDefinition",id:"Bot",name:"Bot",description:"Bot account for automated actions.",snapshot:{element:[{id:"Bot.id",path:"Bot.id",definition:"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.meta",path:"Bot.meta",definition:"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",min:0,max:"1",type:[{code:"Meta"}]},{id:"Bot.implicitRules",path:"Bot.implicitRules",definition:"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",min:0,max:"1",type:[{code:"uri"}]},{id:"Bot.language",path:"Bot.language",definition:"The base language in which the resource is written.",min:0,max:"1",type:[{code:"code"}]},{id:"Bot.name",path:"Bot.name",definition:"A name associated with the Bot.",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.description",path:"Bot.description",definition:"A summary, characterization or explanation of the Bot.",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.runtimeVersion",path:"Bot.runtimeVersion",definition:"The identifier of the bot runtime environment (i.e., vmcontext, awslambda, etc).",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.photo",path:"Bot.photo",definition:"Image of the bot.",min:0,max:"1",type:[{code:"Attachment"}]},{id:"Bot.code",path:"Bot.code",definition:"Bot logic script.",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.runAsUser",path:"Bot.runAsUser",definition:"Optional flag to indicate that the bot should be run as the user.",min:0,max:"1",type:[{code:"boolean"}]}]}}],SearchParameterList:[...j]}},B={resourceType:"ValueSet",expansion:{contains:[{system:"x",code:"test-code",display:"Test Display"}]}},W={resourceType:"Questionnaire",id:"workflow-questionnaire-1",name:"Patient Registration",title:"Patient Registration",subjectType:["Patient"],item:[{linkId:"1",text:"First question",type:"string"}]},F={resourceType:"Questionnaire",id:"workflow-questionnaire-2",name:"Surgery History",title:"Surgery History",subjectType:["Patient"],item:[{linkId:"1",text:"First question",type:"string"}]},G={resourceType:"Questionnaire",id:"workflow-questionnaire-3",name:"Family Health History",title:"Family Health History",subjectType:["Patient"],item:[{linkId:"1",text:"First question",type:"string"}]},J={resourceType:"PlanDefinition",id:"workflow-plan-definition-1",title:"Example Plan Definition",action:[{title:W.title,definitionCanonical:t(W)},{title:F.title,definitionCanonical:t(F)},{title:G.title,definitionCanonical:t(G)}]},_={resourceType:"QuestionnaireResponse",id:"workflow-questionnaire-response-1",questionnaire:t(W),subject:e(R),source:e(R)},Z={resourceType:"Task",id:"workflow-task-1",status:"completed",meta:{author:e(R)},requester:e(g),input:[{valueReference:e(W)}],output:[{valueReference:e(_)}]},$={resourceType:"Task",id:"workflow-task-2",status:"requested",meta:{author:e(g)},requester:e(g),input:[{valueReference:e(F)}]},K={resourceType:"Task",id:"workflow-task-3",status:"requested",meta:{author:e(g)},requester:e(g),input:[{valueReference:e(G)}]},Y={resourceType:"RequestGroup",id:"workflow-request-group-1",instantiatesCanonical:[t(J)],status:"active",action:[{title:W.title,resource:e(Z)},{title:F.title,resource:e($)},{title:G.title,resource:e(K)}]};function X(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}function ee(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,i):o?o.value=i:t.set(e,i),i}var te,ie;function ne(e,t){for(const i of t.value.split(","))if(oe(e,t,i))return!0;return!1}function oe(e,t,o){const a=t.code.replace(/-([a-z])/g,((e,t)=>t.toUpperCase())),r=i(a,e).some((e=>JSON.stringify(e).toLowerCase().includes(o.toLowerCase())));return t.operator===n.NOT_EQUALS?!r:r}te=new WeakMap,ie=new WeakMap;class ae extends o{constructor(e){super({baseUrl:"https://example.com/",clientId:"my-client-id",createPdf:(t,i,n)=>((null==e?void 0:e.debug)&&(console.log("Mock Client: createPdf("),console.log(` ${JSON.stringify(t,null,2)},`),console.log(` ${JSON.stringify(i,null,2)},`),console.log(` ${JSON.stringify(n,null,2)});`)),Promise.resolve({})),fetch:(t,i)=>{const n=i.method||"GET",o=t.replace("https://example.com/","");(null==e?void 0:e.debug)&&console.log("MockClient",n,o);const r=re(n,o,i);return(null==e?void 0:e.debug)&&!r&&console.log("MockClient: not found",n,o),(null==e?void 0:e.debug)&&console.log("MockClient",JSON.stringify(r,null,2)),"OperationOutcome"!==(null==r?void 0:r.resourceType)||a(r)?Promise.resolve({ok:!0,blob:()=>Promise.resolve(r),json:()=>Promise.resolve(r)}):Promise.reject(r)}})}clear(){super.clear(),this.activeLoginOverride=void 0}getProfile(){return{resourceType:"Practitioner",id:"123",meta:{versionId:"456"}}}setActiveLoginOverride(e){this.activeLoginOverride=e}getActiveLogin(){return void 0!==this.activeLoginOverride?this.activeLoginOverride:super.getActiveLogin()}createBinary(e,t,i){return(null==t?void 0:t.endsWith(".exe"))?Promise.reject(r("Invalid file type")):Promise.resolve({resourceType:"Binary",title:t,contentType:i,url:"https://example.com/binary/123"})}}function re(e,t,i){return t.startsWith("admin/")?function(e,t){if(t.startsWith("admin/projects/123"))return{project:{id:"123",name:"Project 123"},members:[{id:"123",profile:{reference:"Practitioner/123",display:"Alice Smith"},role:"owner"},{id:"888",profile:{reference:"ClientApplication/123",display:"Test Client"},role:"client"},{id:"999",profile:{reference:"Bot/123",display:"Test Bot"},role:"bot"}]};return{ok:!0}}(0,t):t.startsWith("auth/")?function(e,t,i){if(t.startsWith("auth/changepassword"))return function(e,t,i){const{body:n}=i,{oldPassword:o}=JSON.parse(n);return"orange"===o?s:{resourceType:"OperationOutcome",issue:[{expression:["oldPassword"],details:{text:"Incorrect password"}}]}}(0,0,i);if(t.startsWith("auth/login"))return function(e,t,i){const{body:n}=i,{password:o}=JSON.parse(n);return"password"===o?{code:"xyz"}:{resourceType:"OperationOutcome",issue:[{expression:["password"],details:{text:"Invalid password"}}]}}(0,0,i);if(t.startsWith("auth/setpassword"))return function(e,t,i){const{body:n}=i,{password:o}=JSON.parse(n);return"orange"===o?s:{resourceType:"OperationOutcome",issue:[{expression:["password"],details:{text:"Invalid password"}}]}}(0,0,i);if(t.startsWith("auth/newuser"))return function(e,t,i){const{body:n}=i,{email:o,password:a}=JSON.parse(n);return"george@example.com"===o&&"password"===a?s:{resourceType:"OperationOutcome",issue:[{details:{text:"Invalid"}}]}}(0,0,i);if(t.startsWith("auth/newproject"))return{code:"xyz"};if(t.startsWith("auth/resetpassword"))return function(e,t,i){const{body:n}=i,{email:o}=JSON.parse(n);return"admin@example.com"===o?s:{resourceType:"OperationOutcome",issue:[{expression:["email"],details:{text:"Email not found"}}]}}(0,0,i);if(t.startsWith("auth/me"))return{profile:{reference:"Practitioner/123"}};return null}(0,t,i):t.startsWith("oauth2/")?function(e,t,i){if(t.startsWith("oauth2/token"))return{access_token:"header."+window.btoa(JSON.stringify({client_id:"my-client-id"}))+".signature"};return null}(0,t):t.startsWith("fhir/R4")?function(e,t,i){const n=t.includes("?")?t.substring(0,t.indexOf("?")):t,o=/fhir\/R4\/?([^/]+)?\/?([^/]+)?\/?([^/]+)?\/?([^/]+)?/.exec(n),a=null==o?void 0:o[1],r=null==o?void 0:o[2],s=null==o?void 0:o[3],p=null==o?void 0:o[4];if(n.startsWith("fhir/R4/ValueSet/$expand"))return B;if("fhir/R4/$graphql"===n)return function(e,t,i){const{body:n}=i;if(n.includes("ResourceList: ServiceRequestList"))return{data:{ResourceList:[Object.assign(Object.assign({},H),{ObservationList:[D,A,C,L,k,Q]})]}};return N}(0,0,i);if("not-found"===n||"not-found"===r)return d;if("POST"===e)return a&&r&&s?{}:a?se.createResource(JSON.parse(i.body)):function(e,t,i){var n;const{body:o}=i,a=JSON.parse(o);return{resourceType:"Bundle",type:"batch-response",entry:null===(n=a.entry)||void 0===n?void 0:n.map((e=>{var t,i;const n="fhir/R4/"+(null===(t=null==e?void 0:e.request)||void 0===t?void 0:t.url),o=re(null===(i=null==e?void 0:e.request)||void 0===i?void 0:i.method,n,null);return"OperationOutcome"===(null==o?void 0:o.resourceType)?{resource:o,response:{status:h(o).toString()}}:o?{resource:o,response:{status:"200"}}:{resource:d,response:{status:"404"}}}))}}(0,0,i);if("GET"===e){if(a&&r&&p)return se.readVersion(a,r,p);if(a&&r&&"_history"===s)return se.readHistory(a,r);if(a&&r)return se.readResource(a,r);if(a)return se.search(c(t))}else{if("PUT"===e)return se.createResource(JSON.parse(i.body));if("DELETE"===e)return a&&r?se.deleteResource(a,r):d}}(e,t,i):null}const se=new class{constructor(){te.set(this,void 0),ie.set(this,void 0),ee(this,te,{},"f"),ee(this,ie,{},"f")}createResource(e){var t,i;const n=e;n.id||(n.id=this.generateId()),n.meta||(n.meta={}),(null===(t=n.meta)||void 0===t?void 0:t.versionId)||(n.meta.versionId=this.generateId()),(null===(i=n.meta)||void 0===i?void 0:i.lastUpdated)||(n.meta.lastUpdated=(new Date).toISOString());const{resourceType:o,id:a}=e;return o in X(this,te,"f")||(X(this,te,"f")[o]={}),o in X(this,ie,"f")||(X(this,ie,"f")[o]={}),a in X(this,ie,"f")[o]||(X(this,ie,"f")[o][a]=[]),X(this,te,"f")[o][a]=e,X(this,ie,"f")[o][a].push(n),n}readResource(e,t){var i,n;return null===(n=null===(i=X(this,te,"f"))||void 0===i?void 0:i[e])||void 0===n?void 0:n[t]}readHistory(e,t){var i,n,o;return{resourceType:"Bundle",type:"history",entry:(null!==(o=null===(n=null===(i=X(this,ie,"f"))||void 0===i?void 0:i[e])||void 0===n?void 0:n[t])&&void 0!==o?o:[]).sort(((e,t)=>{var i,n,o;return-(null===(n=null===(i=e.meta)||void 0===i?void 0:i.lastUpdated)||void 0===n?void 0:n.localeCompare(null===(o=t.meta)||void 0===o?void 0:o.lastUpdated))})).map((e=>({resource:e})))}}readVersion(e,t,i){var n,o,a;return null===(a=null===(o=null===(n=X(this,ie,"f"))||void 0===n?void 0:n[e])||void 0===o?void 0:o[t])||void 0===a?void 0:a.find((e=>{var t;return(null===(t=e.meta)||void 0===t?void 0:t.versionId)===i}))}search(e){var t;const{resourceType:i}=e,n=null!==(t=X(this,te,"f")[i])&&void 0!==t?t:{},o=Object.values(n).filter((t=>function(e,t){if(t.resourceType!==e.resourceType)return!1;if(t.filters)for(const i of t.filters)if(!ne(e,i))return!1;return!0}(t,e)));return{resourceType:"Bundle",type:"searchset",entry:o.map((e=>({resource:e}))),total:o.length}}deleteResource(e,t){var i,n;(null===(n=null===(i=X(this,te,"f"))||void 0===i?void 0:i[e])||void 0===n?void 0:n[t])&&delete X(this,te,"f")[e][t]}generateId(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}};se.createResource(q),se.createResource(R),se.createResource(p),se.createResource(u),se.createResource(f),se.createResource(v),se.createResource(S),se.createResource(M),se.createResource(P),se.createResource(E),se.createResource(O),se.createResource(D),se.createResource(A),se.createResource(C),se.createResource(L),se.createResource(k),se.createResource(Q),se.createResource(z),se.createResource(m),se.createResource(l),se.createResource(T),se.createResource(w),se.createResource(H),se.createResource(V),se.createResource(I),se.createResource(y),se.createResource(g),se.createResource(x),se.createResource(W),se.createResource(F),se.createResource(G),se.createResource(J),se.createResource(_),se.createResource(Z),se.createResource($),se.createResource(K),se.createResource(Y),b.forEach((e=>se.createResource(e)));export{I as BartSimpson,l as DifferentOrganization,g as DrAliceSmith,y as DrAliceSmithPreviousVersion,x as DrAliceSmithSchedule,b as DrAliceSmithSlots,p as ExampleAccessPolicy,U as ExampleAuditEvent,v as ExampleBot,S as ExampleClient,T as ExampleQuestionnaire,w as ExampleQuestionnaireResponse,u as ExampleStatusValueSet,V as ExampleSubscription,f as ExampleUserConfiguration,J as ExampleWorkflowPlanDefinition,W as ExampleWorkflowQuestionnaire1,F as ExampleWorkflowQuestionnaire2,G as ExampleWorkflowQuestionnaire3,_ as ExampleWorkflowQuestionnaireResponse1,Y as ExampleWorkflowRequestGroup,Z as ExampleWorkflowTask1,$ as ExampleWorkflowTask2,K as ExampleWorkflowTask3,N as GraphQLSchemaResponse,E as HomerCommunication,M as HomerDiagnosticReport,P as HomerEncounter,O as HomerMedia,D as HomerObservation1,A as HomerObservation2,C as HomerObservation3,L as HomerObservation4,k as HomerObservation5,Q as HomerObservation6,H as HomerServiceRequest,R as HomerSimpson,q as HomerSimpsonPreviousVersion,z as HomerSimpsonSpecimen,ae as MockClient,j as PatientSearchParameters,m as TestOrganization,B as exampleValueSet};
|
|
1
|
+
import{createReference as e,getReferenceString as t,evalFhirPath as i,Operator as n,MedplumClient as o,badRequest as a,isOk as r,allOk as c,notFound as d,parseSearchDefinition as p,getStatus as s}from"@medplum/core";const m={resourceType:"AccessPolicy",id:"123",name:"Example Access Policy"},u={resourceType:"ValueSet",id:"example-statuses",compose:{include:[{concept:[{code:"ORDERED"},{code:"SENT_TO_CUSTOMER"},{code:"SENT_BACK_TO_LAB"},{code:"LAB_PROCESSED"},{code:"LAB_COMPLETE"}]}]}},h={resourceType:"UserConfiguration",id:"123",name:"Example User Configuration",option:[{id:"statusValueSet",valueString:"ValueSet/example-statuses"}]},l={resourceType:"Organization",id:"123",meta:{versionId:"1"},name:"Test Organization"},f={resourceType:"Organization",id:"456",meta:{versionId:"1"},name:"Different"},x={resourceType:"Practitioner",id:"123",meta:{versionId:"2",lastUpdated:"2021-01-02T12:00:00Z",author:{reference:"Practitioner/123"}},name:[{given:["Alice"],family:"Smith"}],photo:[{contentType:"image/png",url:"https://docs.medplum.com/img/cdc-femaledoc.png"}]},y={resourceType:"Practitioner",id:"123",meta:{versionId:"1",lastUpdated:"2021-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},name:[{given:["Medplum"],family:"Admin"}]},g={resourceType:"Schedule",id:"123",actor:[{reference:"Practitioner/123",display:"Dr. Alice Smith"}]},P=(()=>{const t=e(g),i=[],n=new Date;for(let e=0;e<60;e++){for(const o of[9,10,11,13,14,15])n.setHours(o,0,0,0),i.push({resourceType:"Slot",id:`slot-${e}-${o}`,start:n.toISOString(),schedule:t});n.setDate(n.getDate()+1)}return i})(),S={resourceType:"Bot",id:"123",name:"Test Bot",code:'console.log("hello world");'},D={resourceType:"ClientApplication",id:"123",name:"Test Client"},v={resourceType:"Questionnaire",id:"123",name:"Vitals",title:"Vitals",subjectType:["Patient"],item:[{linkId:"1",text:"First question",type:"string"}]},R={resourceType:"QuestionnaireResponse",id:"123",questionnaire:"Questionnaire/123",subject:{reference:"Patient/123"},source:{reference:"Practitioner/123"}},b={resourceType:"Patient",id:"123",gender:"male",meta:{versionId:"2",lastUpdated:"2020-01-02T00:00:00.000Z",author:{reference:"Practitioner/123"}},identifier:[{system:"abc",value:"123"},{system:"def",value:"456"}],active:!0,birthDate:"1956-05-12",name:[{given:["Homer"],family:"Simpson"}],photo:[{contentType:"image/png",url:"https://docs.medplum.com/img/homer-simpson.png"}],telecom:[{system:"phone",use:"home",value:"555-7334"},{system:"email",use:"home",value:"chunkylover53@aol.com"}],address:[{use:"home",line:["742 Evergreen Terrace"],city:"Springfield",state:"IL",postalCode:"12345"}]},E={resourceType:"Patient",id:"123",meta:{versionId:"1",lastUpdated:"2020-01-01T00:00:00.000Z",author:{reference:"Practitioner/123"}},name:[{given:["Homer"],family:"Simpson"}],photo:[{contentType:"image/png",url:"https://docs.medplum.com/img/homer-simpson.png"}]},O={resourceType:"Encounter",id:"123",meta:{versionId:"456",lastUpdated:"2020-01-01T00:00:00.000Z",author:{reference:"Practitioner/123"}}},C={resourceType:"Communication",id:"123",meta:{lastUpdated:"2020-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},payload:[{contentString:"Hello world"}]},T={resourceType:"Media",id:"123",meta:{lastUpdated:"2020-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},content:{contentType:"text/plain",url:"https://example.com/test.txt"}},q={resourceType:"Observation",id:"1",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 1"},valueString:"test"},k={resourceType:"Observation",id:"2",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 2"},valueQuantity:{value:20,unit:"x"},referenceRange:[{low:{value:10}}]},Q={resourceType:"Observation",id:"3",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 3"},valueQuantity:{value:30,unit:"x"},referenceRange:[{high:{value:50}}]},z={resourceType:"Observation",id:"4",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 4"},valueQuantity:{value:50,unit:"x",comparator:">"},referenceRange:[{low:{value:10,unit:"x"},high:{value:50,unit:"x"}}],interpretation:[{text:"HIGH"}]},w={resourceType:"Observation",id:"5",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 5"},valueQuantity:{value:100,unit:"x"},referenceRange:[{}],interpretation:[{}]},B={resourceType:"Observation",id:"6",subject:{reference:"Patient/123",display:"Homer Simpson"},code:{text:"Test 6"},component:[{valueQuantity:{value:110,unit:"mmHg",system:"http://unitsofmeasure.org"}},{valueQuantity:{value:75,unit:"mmHg",system:"http://unitsofmeasure.org"}}]},H={id:"123",resourceType:"Specimen",subject:e(b),collection:{collectedDateTime:"2020-01-01T12:00:00Z"},note:[{text:"Specimen hemolyzed. Results may be affected."},{text:"Specimen lipemic. Results may be affected."}]},I={resourceType:"ServiceRequest",id:"123",meta:{versionId:"1",lastUpdated:"2020-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},identifier:[{system:"https://example.com",value:"9001"}],code:{coding:[{system:"http://snomed.info/sct",code:"SERVICE_REQUEST_CODE"}]},subject:{reference:"Patient/123",display:"Homer Simpson"},status:"active",orderDetail:[{text:"ORDERED"}],specimen:[e(H)],authoredOn:"2020-01-01T12:00:00Z"},A={resourceType:"DiagnosticReport",id:"123",meta:{versionId:"1",lastUpdated:"2020-01-02T12:00:00Z",author:{reference:"Practitioner/123"}},subject:e(b),basedOn:[e(I)],specimen:[e(H)],resultsInterpreter:[e(x)],result:[e(q),e(k),e(Q),e(z),e(w),e(B)]},j={resourceType:"Patient",id:"555",meta:{versionId:"1",lastUpdated:"2020-01-01T12:00:00Z",author:{reference:"Practitioner/123"}},birthDate:"1979-12-17",name:[{given:["Bart"],family:"Simpson"}],photo:[{contentType:"image/jpeg",url:"https://example.com/picture.jpg"}],telecom:[{system:"phone",use:"home",value:"555-1239"},{system:"email",use:"home",value:"bart@thesimpsons.com"}]},N={resourceType:"Subscription",id:"123",meta:{versionId:"456"}},M={resourceType:"AuditEvent",id:"123",meta:{lastUpdated:(new Date).toISOString(),versionId:"456",author:{reference:"Practitioner/123"}}};const L=[{resourceType:"SearchParameter",id:"Patient-name",base:["Patient"],code:"name",name:"name",type:"string",expression:"Patient.name"},{resourceType:"SearchParameter",id:"Patient-birthdate",base:["Patient"],code:"birthdate",name:"birthdate",type:"date",expression:"Patient.birthDate"},{resourceType:"SearchParameter",id:"Patient-organization",base:["Patient"],code:"organization",name:"organization",type:"reference",expression:"Patient.managingOrganization",target:["Organization"]},{resourceType:"SearchParameter",id:"Patient-active",base:["Patient"],code:"active",name:"active",type:"token",expression:"Patient.active"},{resourceType:"SearchParameter",id:"individual-telecom",base:["Patient","Practitioner"],code:"telecom",name:"telecom",type:"token",expression:"Patient.telecom | Practitioner.telecom"},{resourceType:"SearchParameter",id:"individual-email",base:["Patient","Practitioner"],code:"email",name:"email",type:"token",expression:"Patient.telecom.where(system='email') | Practitioner.telecom.where(system='email')"},{resourceType:"SearchParameter",id:"individual-phone",base:["Patient","Practitioner"],code:"phone",name:"phone",type:"token",expression:"Patient.telecom.where(system='phone') | Practitioner.telecom.where(system='phone')"},{resourceType:"SearchParameter",id:"individual-address-city",base:["Patient","Practitioner"],code:"address-city",name:"address-city",type:"string",expression:"Patient.address.city | Practitioner.address.city"},{resourceType:"SearchParameter",id:"individual-address-state",base:["Patient","Practitioner"],code:"address-state",name:"address-state",type:"token",expression:"Patient.address.state | Practitioner.address.state"},{resourceType:"SearchParameter",id:"ServiceRequest-subject",code:"subject",base:["ServiceRequest"],type:"reference",expression:"ServiceRequest.subject",target:["Group","Device","Patient","Location"]},{resourceType:"SearchParameter",id:"ServiceRequest-authored",code:"authored",base:["ServiceRequest"],type:"date",expression:"ServiceRequest.authoredOn"},{resourceType:"SearchParameter",id:"Observation-value-quantity",code:"value-quantity",base:["Observation"],type:"quantity",expression:"(Observation.value as Quantity) | (Observation.value as SampledData)"},{resourceType:"SearchParameter",id:"Observation-value-string",code:"value-string",base:["Observation"],type:"string",expression:"(Observation.value as string) | (Observation.value as CodeableConcept).text"},{resourceType:"SearchParameter",id:"Encounter-length",code:"length",base:["Encounter"],type:"quantity",expression:"Encounter.length"}],U={data:{StructureDefinitionList:[{resourceType:"StructureDefinition",id:"DiagnosticReport",name:"DiagnosticReport",type:"DiagnosticReport",snapshot:{element:[{id:"DiagnosticReport",path:"DiagnosticReport",min:0,max:"*"},{id:"DiagnosticReport.id",path:"DiagnosticReport.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"DiagnosticReport.meta",path:"DiagnosticReport.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"DiagnosticReport.implicitRules",path:"DiagnosticReport.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"DiagnosticReport.language",path:"DiagnosticReport.language",min:0,max:"1",type:[{code:"code"}]},{id:"DiagnosticReport.text",path:"DiagnosticReport.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"DiagnosticReport.contained",path:"DiagnosticReport.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"DiagnosticReport.extension",path:"DiagnosticReport.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"DiagnosticReport.modifierExtension",path:"DiagnosticReport.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"DiagnosticReport.identifier",path:"DiagnosticReport.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"DiagnosticReport.basedOn",path:"DiagnosticReport.basedOn",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/CarePlan","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation","http://hl7.org/fhir/StructureDefinition/MedicationRequest","http://hl7.org/fhir/StructureDefinition/NutritionOrder","http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"DiagnosticReport.status",path:"DiagnosticReport.status",min:1,max:"1",type:[{code:"code"}]},{id:"DiagnosticReport.category",path:"DiagnosticReport.category",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"DiagnosticReport.code",path:"DiagnosticReport.code",min:1,max:"1",type:[{code:"CodeableConcept"}]},{id:"DiagnosticReport.subject",path:"DiagnosticReport.subject",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"DiagnosticReport.encounter",path:"DiagnosticReport.encounter",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Encounter"]}]},{id:"DiagnosticReport.effective[x]",path:"DiagnosticReport.effective[x]",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"}]},{id:"DiagnosticReport.issued",path:"DiagnosticReport.issued",min:0,max:"1",type:[{code:"instant"}]},{id:"DiagnosticReport.performer",path:"DiagnosticReport.performer",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/CareTeam"]}]},{id:"DiagnosticReport.resultsInterpreter",path:"DiagnosticReport.resultsInterpreter",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/CareTeam"]}]},{id:"DiagnosticReport.specimen",path:"DiagnosticReport.specimen",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Specimen"]}]},{id:"DiagnosticReport.result",path:"DiagnosticReport.result",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Observation"]}]},{id:"DiagnosticReport.imagingStudy",path:"DiagnosticReport.imagingStudy",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/ImagingStudy"]}]},{id:"DiagnosticReport.media",path:"DiagnosticReport.media",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"DiagnosticReport.media.id",path:"DiagnosticReport.media.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"DiagnosticReport.media.extension",path:"DiagnosticReport.media.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"DiagnosticReport.media.modifierExtension",path:"DiagnosticReport.media.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"DiagnosticReport.media.comment",path:"DiagnosticReport.media.comment",min:0,max:"1",type:[{code:"string"}]},{id:"DiagnosticReport.media.link",path:"DiagnosticReport.media.link",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Media"]}]},{id:"DiagnosticReport.conclusion",path:"DiagnosticReport.conclusion",min:0,max:"1",type:[{code:"string"}]},{id:"DiagnosticReport.conclusionCode",path:"DiagnosticReport.conclusionCode",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"DiagnosticReport.presentedForm",path:"DiagnosticReport.presentedForm",min:0,max:"*",type:[{code:"Attachment"}]}]}},{resourceType:"StructureDefinition",id:"Encounter",name:"Encounter",type:"Encounter",snapshot:{element:[{id:"Encounter",path:"Encounter",min:0,max:"*"},{id:"Encounter.id",path:"Encounter.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.meta",path:"Encounter.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"Encounter.implicitRules",path:"Encounter.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"Encounter.language",path:"Encounter.language",min:0,max:"1",type:[{code:"code"}]},{id:"Encounter.text",path:"Encounter.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"Encounter.contained",path:"Encounter.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"Encounter.extension",path:"Encounter.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.modifierExtension",path:"Encounter.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.identifier",path:"Encounter.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Encounter.status",path:"Encounter.status",min:1,max:"1",type:[{code:"code"}]},{id:"Encounter.statusHistory",path:"Encounter.statusHistory",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.statusHistory.id",path:"Encounter.statusHistory.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.statusHistory.extension",path:"Encounter.statusHistory.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.statusHistory.modifierExtension",path:"Encounter.statusHistory.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.statusHistory.status",path:"Encounter.statusHistory.status",min:1,max:"1",type:[{code:"code"}]},{id:"Encounter.statusHistory.period",path:"Encounter.statusHistory.period",min:1,max:"1",type:[{code:"Period"}]},{id:"Encounter.class",path:"Encounter.class",min:1,max:"1",type:[{code:"Coding"}]},{id:"Encounter.classHistory",path:"Encounter.classHistory",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.classHistory.id",path:"Encounter.classHistory.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.classHistory.extension",path:"Encounter.classHistory.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.classHistory.modifierExtension",path:"Encounter.classHistory.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.classHistory.class",path:"Encounter.classHistory.class",min:1,max:"1",type:[{code:"Coding"}]},{id:"Encounter.classHistory.period",path:"Encounter.classHistory.period",min:1,max:"1",type:[{code:"Period"}]},{id:"Encounter.type",path:"Encounter.type",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Encounter.serviceType",path:"Encounter.serviceType",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Encounter.priority",path:"Encounter.priority",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Encounter.subject",path:"Encounter.subject",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group"]}]},{id:"Encounter.episodeOfCare",path:"Encounter.episodeOfCare",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"]}]},{id:"Encounter.basedOn",path:"Encounter.basedOn",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"Encounter.participant",path:"Encounter.participant",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.participant.id",path:"Encounter.participant.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.participant.extension",path:"Encounter.participant.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.participant.modifierExtension",path:"Encounter.participant.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.participant.type",path:"Encounter.participant.type",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Encounter.participant.period",path:"Encounter.participant.period",min:0,max:"1",type:[{code:"Period"}]},{id:"Encounter.participant.individual",path:"Encounter.participant.individual",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/RelatedPerson"]}]},{id:"Encounter.appointment",path:"Encounter.appointment",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Appointment"]}]},{id:"Encounter.period",path:"Encounter.period",min:0,max:"1",type:[{code:"Period"}]},{id:"Encounter.length",path:"Encounter.length",min:0,max:"1",type:[{code:"Duration"}]},{id:"Encounter.reasonCode",path:"Encounter.reasonCode",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Encounter.reasonReference",path:"Encounter.reasonReference",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Condition","http://hl7.org/fhir/StructureDefinition/Procedure","http://hl7.org/fhir/StructureDefinition/Observation","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"]}]},{id:"Encounter.diagnosis",path:"Encounter.diagnosis",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.diagnosis.id",path:"Encounter.diagnosis.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.diagnosis.extension",path:"Encounter.diagnosis.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.diagnosis.modifierExtension",path:"Encounter.diagnosis.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.diagnosis.condition",path:"Encounter.diagnosis.condition",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Condition","http://hl7.org/fhir/StructureDefinition/Procedure"]}]},{id:"Encounter.diagnosis.use",path:"Encounter.diagnosis.use",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Encounter.diagnosis.rank",path:"Encounter.diagnosis.rank",min:0,max:"1",type:[{code:"positiveInt"}]},{id:"Encounter.account",path:"Encounter.account",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Account"]}]},{id:"Encounter.hospitalization",path:"Encounter.hospitalization",min:0,max:"1",type:[{code:"BackboneElement"}]},{id:"Encounter.hospitalization.id",path:"Encounter.hospitalization.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.hospitalization.extension",path:"Encounter.hospitalization.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.hospitalization.modifierExtension",path:"Encounter.hospitalization.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.hospitalization.preAdmissionIdentifier",path:"Encounter.hospitalization.preAdmissionIdentifier",min:0,max:"1",type:[{code:"Identifier"}]},{id:"Encounter.hospitalization.origin",path:"Encounter.hospitalization.origin",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Location","http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Encounter.hospitalization.admitSource",path:"Encounter.hospitalization.admitSource",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Encounter.hospitalization.reAdmission",path:"Encounter.hospitalization.reAdmission",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Encounter.hospitalization.dietPreference",path:"Encounter.hospitalization.dietPreference",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Encounter.hospitalization.specialCourtesy",path:"Encounter.hospitalization.specialCourtesy",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Encounter.hospitalization.specialArrangement",path:"Encounter.hospitalization.specialArrangement",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Encounter.hospitalization.destination",path:"Encounter.hospitalization.destination",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Location","http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Encounter.hospitalization.dischargeDisposition",path:"Encounter.hospitalization.dischargeDisposition",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Encounter.location",path:"Encounter.location",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Encounter.location.id",path:"Encounter.location.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Encounter.location.extension",path:"Encounter.location.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.location.modifierExtension",path:"Encounter.location.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Encounter.location.location",path:"Encounter.location.location",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"Encounter.location.status",path:"Encounter.location.status",min:0,max:"1",type:[{code:"code"}]},{id:"Encounter.location.physicalType",path:"Encounter.location.physicalType",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Encounter.location.period",path:"Encounter.location.period",min:0,max:"1",type:[{code:"Period"}]},{id:"Encounter.serviceProvider",path:"Encounter.serviceProvider",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Encounter.partOf",path:"Encounter.partOf",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Encounter"]}]}]}},{resourceType:"StructureDefinition",id:"Observation",name:"Observation",type:"Observation",snapshot:{element:[{id:"Observation",path:"Observation",min:0,max:"*"},{id:"Observation.id",path:"Observation.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Observation.meta",path:"Observation.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"Observation.implicitRules",path:"Observation.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"Observation.language",path:"Observation.language",min:0,max:"1",type:[{code:"code"}]},{id:"Observation.text",path:"Observation.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"Observation.contained",path:"Observation.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"Observation.extension",path:"Observation.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.modifierExtension",path:"Observation.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.identifier",path:"Observation.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Observation.basedOn",path:"Observation.basedOn",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/CarePlan","http://hl7.org/fhir/StructureDefinition/DeviceRequest","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation","http://hl7.org/fhir/StructureDefinition/MedicationRequest","http://hl7.org/fhir/StructureDefinition/NutritionOrder","http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"Observation.partOf",path:"Observation.partOf",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/MedicationAdministration","http://hl7.org/fhir/StructureDefinition/MedicationDispense","http://hl7.org/fhir/StructureDefinition/MedicationStatement","http://hl7.org/fhir/StructureDefinition/Procedure","http://hl7.org/fhir/StructureDefinition/Immunization","http://hl7.org/fhir/StructureDefinition/ImagingStudy"]}]},{id:"Observation.status",path:"Observation.status",min:1,max:"1",type:[{code:"code"}]},{id:"Observation.category",path:"Observation.category",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Observation.code",path:"Observation.code",min:1,max:"1",type:[{code:"CodeableConcept"}]},{id:"Observation.subject",path:"Observation.subject",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"Observation.focus",path:"Observation.focus",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}]},{id:"Observation.encounter",path:"Observation.encounter",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Encounter"]}]},{id:"Observation.effective[x]",path:"Observation.effective[x]",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"},{code:"Timing"},{code:"instant"}]},{id:"Observation.issued",path:"Observation.issued",min:0,max:"1",type:[{code:"instant"}]},{id:"Observation.performer",path:"Observation.performer",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/CareTeam","http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/RelatedPerson"]}]},{id:"Observation.value[x]",path:"Observation.value[x]",min:0,max:"1",type:[{code:"Quantity"},{code:"CodeableConcept"},{code:"string"},{code:"boolean"},{code:"integer"},{code:"Range"},{code:"Ratio"},{code:"SampledData"},{code:"time"},{code:"dateTime"},{code:"Period"}]},{id:"Observation.dataAbsentReason",path:"Observation.dataAbsentReason",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Observation.interpretation",path:"Observation.interpretation",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Observation.note",path:"Observation.note",min:0,max:"*",type:[{code:"Annotation"}]},{id:"Observation.bodySite",path:"Observation.bodySite",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Observation.method",path:"Observation.method",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Observation.specimen",path:"Observation.specimen",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Specimen"]}]},{id:"Observation.device",path:"Observation.device",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/DeviceMetric"]}]},{id:"Observation.referenceRange",path:"Observation.referenceRange",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Observation.referenceRange.id",path:"Observation.referenceRange.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Observation.referenceRange.extension",path:"Observation.referenceRange.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.referenceRange.modifierExtension",path:"Observation.referenceRange.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.referenceRange.low",path:"Observation.referenceRange.low",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Observation.referenceRange.high",path:"Observation.referenceRange.high",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Observation.referenceRange.type",path:"Observation.referenceRange.type",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Observation.referenceRange.appliesTo",path:"Observation.referenceRange.appliesTo",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Observation.referenceRange.age",path:"Observation.referenceRange.age",min:0,max:"1",type:[{code:"Range"}]},{id:"Observation.referenceRange.text",path:"Observation.referenceRange.text",min:0,max:"1",type:[{code:"string"}]},{id:"Observation.hasMember",path:"Observation.hasMember",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Observation","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse","http://hl7.org/fhir/StructureDefinition/MolecularSequence"]}]},{id:"Observation.derivedFrom",path:"Observation.derivedFrom",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/DocumentReference","http://hl7.org/fhir/StructureDefinition/ImagingStudy","http://hl7.org/fhir/StructureDefinition/Media","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse","http://hl7.org/fhir/StructureDefinition/Observation","http://hl7.org/fhir/StructureDefinition/MolecularSequence"]}]},{id:"Observation.component",path:"Observation.component",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Observation.component.id",path:"Observation.component.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Observation.component.extension",path:"Observation.component.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.component.modifierExtension",path:"Observation.component.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Observation.component.code",path:"Observation.component.code",min:1,max:"1",type:[{code:"CodeableConcept"}]},{id:"Observation.component.value[x]",path:"Observation.component.value[x]",min:0,max:"1",type:[{code:"Quantity"},{code:"CodeableConcept"},{code:"string"},{code:"boolean"},{code:"integer"},{code:"Range"},{code:"Ratio"},{code:"SampledData"},{code:"time"},{code:"dateTime"},{code:"Period"}]},{id:"Observation.component.dataAbsentReason",path:"Observation.component.dataAbsentReason",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Observation.component.interpretation",path:"Observation.component.interpretation",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Observation.component.referenceRange",path:"Observation.component.referenceRange",min:0,max:"*"}]}},{resourceType:"StructureDefinition",id:"Organization",name:"Organization",type:"Organization",snapshot:{element:[{id:"Organization",path:"Organization",min:0,max:"*"},{id:"Organization.id",path:"Organization.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Organization.meta",path:"Organization.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"Organization.implicitRules",path:"Organization.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"Organization.language",path:"Organization.language",min:0,max:"1",type:[{code:"code"}]},{id:"Organization.text",path:"Organization.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"Organization.contained",path:"Organization.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"Organization.extension",path:"Organization.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Organization.modifierExtension",path:"Organization.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Organization.identifier",path:"Organization.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Organization.active",path:"Organization.active",min:0,max:"1",type:[{code:"boolean"}]},{id:"Organization.type",path:"Organization.type",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Organization.name",path:"Organization.name",min:0,max:"1",type:[{code:"string"}]},{id:"Organization.alias",path:"Organization.alias",min:0,max:"*",type:[{code:"string"}]},{id:"Organization.telecom",path:"Organization.telecom",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Organization.address",path:"Organization.address",min:0,max:"*",type:[{code:"Address"}]},{id:"Organization.partOf",path:"Organization.partOf",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Organization.contact",path:"Organization.contact",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Organization.contact.id",path:"Organization.contact.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Organization.contact.extension",path:"Organization.contact.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Organization.contact.modifierExtension",path:"Organization.contact.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Organization.contact.purpose",path:"Organization.contact.purpose",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Organization.contact.name",path:"Organization.contact.name",min:0,max:"1",type:[{code:"HumanName"}]},{id:"Organization.contact.telecom",path:"Organization.contact.telecom",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Organization.contact.address",path:"Organization.contact.address",min:0,max:"1",type:[{code:"Address"}]},{id:"Organization.endpoint",path:"Organization.endpoint",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Endpoint"]}]}]}},{resourceType:"StructureDefinition",id:"Patient",name:"Patient",type:"Patient",snapshot:{element:[{id:"Patient",path:"Patient",min:0,max:"*"},{id:"Patient.id",path:"Patient.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Patient.meta",path:"Patient.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"Patient.implicitRules",path:"Patient.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"Patient.language",path:"Patient.language",min:0,max:"1",type:[{code:"code"}]},{id:"Patient.text",path:"Patient.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"Patient.contained",path:"Patient.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"Patient.extension",path:"Patient.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.modifierExtension",path:"Patient.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.identifier",path:"Patient.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Patient.active",path:"Patient.active",min:0,max:"1",type:[{code:"boolean"}]},{id:"Patient.name",path:"Patient.name",min:0,max:"*",type:[{code:"HumanName"}]},{id:"Patient.telecom",path:"Patient.telecom",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Patient.gender",path:"Patient.gender",min:0,max:"1",type:[{code:"code"}]},{id:"Patient.birthDate",path:"Patient.birthDate",min:0,max:"1",type:[{code:"date"}]},{id:"Patient.deceased[x]",path:"Patient.deceased[x]",min:0,max:"1",type:[{code:"boolean"},{code:"dateTime"}]},{id:"Patient.address",path:"Patient.address",min:0,max:"*",type:[{code:"Address"}]},{id:"Patient.maritalStatus",path:"Patient.maritalStatus",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Patient.multipleBirth[x]",path:"Patient.multipleBirth[x]",min:0,max:"1",type:[{code:"boolean"},{code:"integer"}]},{id:"Patient.photo",path:"Patient.photo",min:0,max:"*",type:[{code:"Attachment"}]},{id:"Patient.contact",path:"Patient.contact",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Patient.contact.id",path:"Patient.contact.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Patient.contact.extension",path:"Patient.contact.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.contact.modifierExtension",path:"Patient.contact.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.contact.relationship",path:"Patient.contact.relationship",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Patient.contact.name",path:"Patient.contact.name",min:0,max:"1",type:[{code:"HumanName"}]},{id:"Patient.contact.telecom",path:"Patient.contact.telecom",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Patient.contact.address",path:"Patient.contact.address",min:0,max:"1",type:[{code:"Address"}]},{id:"Patient.contact.gender",path:"Patient.contact.gender",min:0,max:"1",type:[{code:"code"}]},{id:"Patient.contact.organization",path:"Patient.contact.organization",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Patient.contact.period",path:"Patient.contact.period",min:0,max:"1",type:[{code:"Period"}]},{id:"Patient.communication",path:"Patient.communication",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Patient.communication.id",path:"Patient.communication.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Patient.communication.extension",path:"Patient.communication.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.communication.modifierExtension",path:"Patient.communication.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.communication.language",path:"Patient.communication.language",min:1,max:"1",type:[{code:"CodeableConcept"}]},{id:"Patient.communication.preferred",path:"Patient.communication.preferred",min:0,max:"1",type:[{code:"boolean"}]},{id:"Patient.generalPractitioner",path:"Patient.generalPractitioner",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole"]}]},{id:"Patient.managingOrganization",path:"Patient.managingOrganization",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Patient.link",path:"Patient.link",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Patient.link.id",path:"Patient.link.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Patient.link.extension",path:"Patient.link.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.link.modifierExtension",path:"Patient.link.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Patient.link.other",path:"Patient.link.other",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/RelatedPerson"]}]},{id:"Patient.link.type",path:"Patient.link.type",min:1,max:"1",type:[{code:"code"}]}]}},{resourceType:"StructureDefinition",id:"PlanDefinition",name:"PlanDefinition",type:"PlanDefinition",snapshot:{element:[{id:"PlanDefinition",path:"PlanDefinition",min:0,max:"*"},{id:"PlanDefinition.id",path:"PlanDefinition.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"PlanDefinition.meta",path:"PlanDefinition.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"PlanDefinition.implicitRules",path:"PlanDefinition.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"PlanDefinition.language",path:"PlanDefinition.language",min:0,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.text",path:"PlanDefinition.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"PlanDefinition.contained",path:"PlanDefinition.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"PlanDefinition.extension",path:"PlanDefinition.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.modifierExtension",path:"PlanDefinition.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.url",path:"PlanDefinition.url",min:0,max:"1",type:[{code:"uri"}]},{id:"PlanDefinition.identifier",path:"PlanDefinition.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"PlanDefinition.version",path:"PlanDefinition.version",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.name",path:"PlanDefinition.name",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.title",path:"PlanDefinition.title",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.subtitle",path:"PlanDefinition.subtitle",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.type",path:"PlanDefinition.type",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.status",path:"PlanDefinition.status",min:1,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.experimental",path:"PlanDefinition.experimental",min:0,max:"1",type:[{code:"boolean"}]},{id:"PlanDefinition.subject[x]",path:"PlanDefinition.subject[x]",min:0,max:"1",type:[{code:"CodeableConcept"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Group"]}]},{id:"PlanDefinition.date",path:"PlanDefinition.date",min:0,max:"1",type:[{code:"dateTime"}]},{id:"PlanDefinition.publisher",path:"PlanDefinition.publisher",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.contact",path:"PlanDefinition.contact",min:0,max:"*",type:[{code:"ContactDetail"}]},{id:"PlanDefinition.description",path:"PlanDefinition.description",min:0,max:"1",type:[{code:"markdown"}]},{id:"PlanDefinition.useContext",path:"PlanDefinition.useContext",min:0,max:"*",type:[{code:"UsageContext"}]},{id:"PlanDefinition.jurisdiction",path:"PlanDefinition.jurisdiction",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.purpose",path:"PlanDefinition.purpose",min:0,max:"1",type:[{code:"markdown"}]},{id:"PlanDefinition.usage",path:"PlanDefinition.usage",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.copyright",path:"PlanDefinition.copyright",min:0,max:"1",type:[{code:"markdown"}]},{id:"PlanDefinition.approvalDate",path:"PlanDefinition.approvalDate",min:0,max:"1",type:[{code:"date"}]},{id:"PlanDefinition.lastReviewDate",path:"PlanDefinition.lastReviewDate",min:0,max:"1",type:[{code:"date"}]},{id:"PlanDefinition.effectivePeriod",path:"PlanDefinition.effectivePeriod",min:0,max:"1",type:[{code:"Period"}]},{id:"PlanDefinition.topic",path:"PlanDefinition.topic",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.author",path:"PlanDefinition.author",min:0,max:"*",type:[{code:"ContactDetail"}]},{id:"PlanDefinition.editor",path:"PlanDefinition.editor",min:0,max:"*",type:[{code:"ContactDetail"}]},{id:"PlanDefinition.reviewer",path:"PlanDefinition.reviewer",min:0,max:"*",type:[{code:"ContactDetail"}]},{id:"PlanDefinition.endorser",path:"PlanDefinition.endorser",min:0,max:"*",type:[{code:"ContactDetail"}]},{id:"PlanDefinition.relatedArtifact",path:"PlanDefinition.relatedArtifact",min:0,max:"*",type:[{code:"RelatedArtifact"}]},{id:"PlanDefinition.library",path:"PlanDefinition.library",min:0,max:"*",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/Library"]}]},{id:"PlanDefinition.goal",path:"PlanDefinition.goal",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"PlanDefinition.goal.id",path:"PlanDefinition.goal.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"PlanDefinition.goal.extension",path:"PlanDefinition.goal.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.goal.modifierExtension",path:"PlanDefinition.goal.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.goal.category",path:"PlanDefinition.goal.category",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.goal.description",path:"PlanDefinition.goal.description",min:1,max:"1",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.goal.priority",path:"PlanDefinition.goal.priority",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.goal.start",path:"PlanDefinition.goal.start",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.goal.addresses",path:"PlanDefinition.goal.addresses",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.goal.documentation",path:"PlanDefinition.goal.documentation",min:0,max:"*",type:[{code:"RelatedArtifact"}]},{id:"PlanDefinition.goal.target",path:"PlanDefinition.goal.target",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"PlanDefinition.goal.target.id",path:"PlanDefinition.goal.target.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"PlanDefinition.goal.target.extension",path:"PlanDefinition.goal.target.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.goal.target.modifierExtension",path:"PlanDefinition.goal.target.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.goal.target.measure",path:"PlanDefinition.goal.target.measure",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.goal.target.detail[x]",path:"PlanDefinition.goal.target.detail[x]",min:0,max:"1",type:[{code:"Quantity"},{code:"Range"},{code:"CodeableConcept"}]},{id:"PlanDefinition.goal.target.due",path:"PlanDefinition.goal.target.due",min:0,max:"1",type:[{code:"Duration"}]},{id:"PlanDefinition.action",path:"PlanDefinition.action",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"PlanDefinition.action.id",path:"PlanDefinition.action.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"PlanDefinition.action.extension",path:"PlanDefinition.action.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.modifierExtension",path:"PlanDefinition.action.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.prefix",path:"PlanDefinition.action.prefix",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.action.title",path:"PlanDefinition.action.title",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.action.description",path:"PlanDefinition.action.description",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.action.textEquivalent",path:"PlanDefinition.action.textEquivalent",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.action.priority",path:"PlanDefinition.action.priority",min:0,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.code",path:"PlanDefinition.action.code",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.action.reason",path:"PlanDefinition.action.reason",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.action.documentation",path:"PlanDefinition.action.documentation",min:0,max:"*",type:[{code:"RelatedArtifact"}]},{id:"PlanDefinition.action.goalId",path:"PlanDefinition.action.goalId",min:0,max:"*",type:[{code:"id"}]},{id:"PlanDefinition.action.subject[x]",path:"PlanDefinition.action.subject[x]",min:0,max:"1",type:[{code:"CodeableConcept"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Group"]}]},{id:"PlanDefinition.action.trigger",path:"PlanDefinition.action.trigger",min:0,max:"*",type:[{code:"TriggerDefinition"}]},{id:"PlanDefinition.action.condition",path:"PlanDefinition.action.condition",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"PlanDefinition.action.condition.id",path:"PlanDefinition.action.condition.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"PlanDefinition.action.condition.extension",path:"PlanDefinition.action.condition.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.condition.modifierExtension",path:"PlanDefinition.action.condition.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.condition.kind",path:"PlanDefinition.action.condition.kind",min:1,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.condition.expression",path:"PlanDefinition.action.condition.expression",min:0,max:"1",type:[{code:"Expression"}]},{id:"PlanDefinition.action.input",path:"PlanDefinition.action.input",min:0,max:"*",type:[{code:"DataRequirement"}]},{id:"PlanDefinition.action.output",path:"PlanDefinition.action.output",min:0,max:"*",type:[{code:"DataRequirement"}]},{id:"PlanDefinition.action.relatedAction",path:"PlanDefinition.action.relatedAction",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"PlanDefinition.action.relatedAction.id",path:"PlanDefinition.action.relatedAction.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"PlanDefinition.action.relatedAction.extension",path:"PlanDefinition.action.relatedAction.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.relatedAction.modifierExtension",path:"PlanDefinition.action.relatedAction.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.relatedAction.actionId",path:"PlanDefinition.action.relatedAction.actionId",min:1,max:"1",type:[{code:"id"}]},{id:"PlanDefinition.action.relatedAction.relationship",path:"PlanDefinition.action.relatedAction.relationship",min:1,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.relatedAction.offset[x]",path:"PlanDefinition.action.relatedAction.offset[x]",min:0,max:"1",type:[{code:"Duration"},{code:"Range"}]},{id:"PlanDefinition.action.timing[x]",path:"PlanDefinition.action.timing[x]",min:0,max:"1",type:[{code:"dateTime"},{code:"Age"},{code:"Period"},{code:"Duration"},{code:"Range"},{code:"Timing"}]},{id:"PlanDefinition.action.participant",path:"PlanDefinition.action.participant",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"PlanDefinition.action.participant.id",path:"PlanDefinition.action.participant.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"PlanDefinition.action.participant.extension",path:"PlanDefinition.action.participant.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.participant.modifierExtension",path:"PlanDefinition.action.participant.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.participant.type",path:"PlanDefinition.action.participant.type",min:1,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.participant.role",path:"PlanDefinition.action.participant.role",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.action.type",path:"PlanDefinition.action.type",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"PlanDefinition.action.groupingBehavior",path:"PlanDefinition.action.groupingBehavior",min:0,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.selectionBehavior",path:"PlanDefinition.action.selectionBehavior",min:0,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.requiredBehavior",path:"PlanDefinition.action.requiredBehavior",min:0,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.precheckBehavior",path:"PlanDefinition.action.precheckBehavior",min:0,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.cardinalityBehavior",path:"PlanDefinition.action.cardinalityBehavior",min:0,max:"1",type:[{code:"code"}]},{id:"PlanDefinition.action.definition[x]",path:"PlanDefinition.action.definition[x]",min:0,max:"1",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/ActivityDefinition","http://hl7.org/fhir/StructureDefinition/PlanDefinition","http://hl7.org/fhir/StructureDefinition/Questionnaire"]},{code:"uri"}]},{id:"PlanDefinition.action.transform",path:"PlanDefinition.action.transform",min:0,max:"1",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/StructureMap"]}]},{id:"PlanDefinition.action.dynamicValue",path:"PlanDefinition.action.dynamicValue",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"PlanDefinition.action.dynamicValue.id",path:"PlanDefinition.action.dynamicValue.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"PlanDefinition.action.dynamicValue.extension",path:"PlanDefinition.action.dynamicValue.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.dynamicValue.modifierExtension",path:"PlanDefinition.action.dynamicValue.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"PlanDefinition.action.dynamicValue.path",path:"PlanDefinition.action.dynamicValue.path",min:0,max:"1",type:[{code:"string"}]},{id:"PlanDefinition.action.dynamicValue.expression",path:"PlanDefinition.action.dynamicValue.expression",min:0,max:"1",type:[{code:"Expression"}]},{id:"PlanDefinition.action.action",path:"PlanDefinition.action.action",min:0,max:"*"}]}},{resourceType:"StructureDefinition",id:"Practitioner",name:"Practitioner",type:"Practitioner",snapshot:{element:[{id:"Practitioner",path:"Practitioner",min:0,max:"*"},{id:"Practitioner.id",path:"Practitioner.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Practitioner.meta",path:"Practitioner.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"Practitioner.implicitRules",path:"Practitioner.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"Practitioner.language",path:"Practitioner.language",min:0,max:"1",type:[{code:"code"}]},{id:"Practitioner.text",path:"Practitioner.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"Practitioner.contained",path:"Practitioner.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"Practitioner.extension",path:"Practitioner.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Practitioner.modifierExtension",path:"Practitioner.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Practitioner.identifier",path:"Practitioner.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Practitioner.active",path:"Practitioner.active",min:0,max:"1",type:[{code:"boolean"}]},{id:"Practitioner.name",path:"Practitioner.name",min:0,max:"*",type:[{code:"HumanName"}]},{id:"Practitioner.telecom",path:"Practitioner.telecom",min:0,max:"*",type:[{code:"ContactPoint"}]},{id:"Practitioner.address",path:"Practitioner.address",min:0,max:"*",type:[{code:"Address"}]},{id:"Practitioner.gender",path:"Practitioner.gender",min:0,max:"1",type:[{code:"code"}]},{id:"Practitioner.birthDate",path:"Practitioner.birthDate",min:0,max:"1",type:[{code:"date"}]},{id:"Practitioner.photo",path:"Practitioner.photo",min:0,max:"*",type:[{code:"Attachment"}]},{id:"Practitioner.qualification",path:"Practitioner.qualification",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Practitioner.qualification.id",path:"Practitioner.qualification.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Practitioner.qualification.extension",path:"Practitioner.qualification.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Practitioner.qualification.modifierExtension",path:"Practitioner.qualification.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Practitioner.qualification.identifier",path:"Practitioner.qualification.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Practitioner.qualification.code",path:"Practitioner.qualification.code",min:1,max:"1",type:[{code:"CodeableConcept"}]},{id:"Practitioner.qualification.period",path:"Practitioner.qualification.period",min:0,max:"1",type:[{code:"Period"}]},{id:"Practitioner.qualification.issuer",path:"Practitioner.qualification.issuer",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Organization"]}]},{id:"Practitioner.communication",path:"Practitioner.communication",min:0,max:"*",type:[{code:"CodeableConcept"}]}]}},{resourceType:"StructureDefinition",id:"Questionnaire",name:"Questionnaire",type:"Questionnaire",snapshot:{element:[{id:"Questionnaire",path:"Questionnaire",min:0,max:"*"},{id:"Questionnaire.id",path:"Questionnaire.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.meta",path:"Questionnaire.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"Questionnaire.implicitRules",path:"Questionnaire.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"Questionnaire.language",path:"Questionnaire.language",min:0,max:"1",type:[{code:"code"}]},{id:"Questionnaire.text",path:"Questionnaire.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"Questionnaire.contained",path:"Questionnaire.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"Questionnaire.extension",path:"Questionnaire.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.modifierExtension",path:"Questionnaire.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.url",path:"Questionnaire.url",min:0,max:"1",type:[{code:"uri"}]},{id:"Questionnaire.identifier",path:"Questionnaire.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Questionnaire.version",path:"Questionnaire.version",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.name",path:"Questionnaire.name",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.title",path:"Questionnaire.title",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.derivedFrom",path:"Questionnaire.derivedFrom",min:0,max:"*",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/Questionnaire"]}]},{id:"Questionnaire.status",path:"Questionnaire.status",min:1,max:"1",type:[{code:"code"}]},{id:"Questionnaire.experimental",path:"Questionnaire.experimental",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.subjectType",path:"Questionnaire.subjectType",min:0,max:"*",type:[{code:"code"}]},{id:"Questionnaire.date",path:"Questionnaire.date",min:0,max:"1",type:[{code:"dateTime"}]},{id:"Questionnaire.publisher",path:"Questionnaire.publisher",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.contact",path:"Questionnaire.contact",min:0,max:"*",type:[{code:"ContactDetail"}]},{id:"Questionnaire.description",path:"Questionnaire.description",min:0,max:"1",type:[{code:"markdown"}]},{id:"Questionnaire.useContext",path:"Questionnaire.useContext",min:0,max:"*",type:[{code:"UsageContext"}]},{id:"Questionnaire.jurisdiction",path:"Questionnaire.jurisdiction",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Questionnaire.purpose",path:"Questionnaire.purpose",min:0,max:"1",type:[{code:"markdown"}]},{id:"Questionnaire.copyright",path:"Questionnaire.copyright",min:0,max:"1",type:[{code:"markdown"}]},{id:"Questionnaire.approvalDate",path:"Questionnaire.approvalDate",min:0,max:"1",type:[{code:"date"}]},{id:"Questionnaire.lastReviewDate",path:"Questionnaire.lastReviewDate",min:0,max:"1",type:[{code:"date"}]},{id:"Questionnaire.effectivePeriod",path:"Questionnaire.effectivePeriod",min:0,max:"1",type:[{code:"Period"}]},{id:"Questionnaire.code",path:"Questionnaire.code",min:0,max:"*",type:[{code:"Coding"}]},{id:"Questionnaire.item",path:"Questionnaire.item",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Questionnaire.item.id",path:"Questionnaire.item.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.item.extension",path:"Questionnaire.item.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.modifierExtension",path:"Questionnaire.item.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.linkId",path:"Questionnaire.item.linkId",min:1,max:"1",type:[{code:"string"}]},{id:"Questionnaire.item.definition",path:"Questionnaire.item.definition",min:0,max:"1",type:[{code:"uri"}]},{id:"Questionnaire.item.code",path:"Questionnaire.item.code",min:0,max:"*",type:[{code:"Coding"}]},{id:"Questionnaire.item.prefix",path:"Questionnaire.item.prefix",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.item.text",path:"Questionnaire.item.text",min:0,max:"1",type:[{code:"string"}]},{id:"Questionnaire.item.type",path:"Questionnaire.item.type",min:1,max:"1",type:[{code:"code"}]},{id:"Questionnaire.item.enableWhen",path:"Questionnaire.item.enableWhen",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Questionnaire.item.enableWhen.id",path:"Questionnaire.item.enableWhen.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.item.enableWhen.extension",path:"Questionnaire.item.enableWhen.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.enableWhen.modifierExtension",path:"Questionnaire.item.enableWhen.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.enableWhen.question",path:"Questionnaire.item.enableWhen.question",min:1,max:"1",type:[{code:"string"}]},{id:"Questionnaire.item.enableWhen.operator",path:"Questionnaire.item.enableWhen.operator",min:1,max:"1",type:[{code:"code"}]},{id:"Questionnaire.item.enableWhen.answer[x]",path:"Questionnaire.item.enableWhen.answer[x]",min:1,max:"1",type:[{code:"boolean"},{code:"decimal"},{code:"integer"},{code:"date"},{code:"dateTime"},{code:"time"},{code:"string"},{code:"Coding"},{code:"Quantity"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}]},{id:"Questionnaire.item.enableBehavior",path:"Questionnaire.item.enableBehavior",min:0,max:"1",type:[{code:"code"}]},{id:"Questionnaire.item.required",path:"Questionnaire.item.required",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.item.repeats",path:"Questionnaire.item.repeats",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.item.readOnly",path:"Questionnaire.item.readOnly",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.item.maxLength",path:"Questionnaire.item.maxLength",min:0,max:"1",type:[{code:"integer"}]},{id:"Questionnaire.item.answerValueSet",path:"Questionnaire.item.answerValueSet",min:0,max:"1",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/ValueSet"]}]},{id:"Questionnaire.item.answerOption",path:"Questionnaire.item.answerOption",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Questionnaire.item.answerOption.id",path:"Questionnaire.item.answerOption.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.item.answerOption.extension",path:"Questionnaire.item.answerOption.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.answerOption.modifierExtension",path:"Questionnaire.item.answerOption.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.answerOption.value[x]",path:"Questionnaire.item.answerOption.value[x]",min:1,max:"1",type:[{code:"integer"},{code:"date"},{code:"time"},{code:"string"},{code:"Coding"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}]},{id:"Questionnaire.item.answerOption.initialSelected",path:"Questionnaire.item.answerOption.initialSelected",min:0,max:"1",type:[{code:"boolean"}]},{id:"Questionnaire.item.initial",path:"Questionnaire.item.initial",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Questionnaire.item.initial.id",path:"Questionnaire.item.initial.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Questionnaire.item.initial.extension",path:"Questionnaire.item.initial.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.initial.modifierExtension",path:"Questionnaire.item.initial.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Questionnaire.item.initial.value[x]",path:"Questionnaire.item.initial.value[x]",min:1,max:"1",type:[{code:"boolean"},{code:"decimal"},{code:"integer"},{code:"date"},{code:"dateTime"},{code:"time"},{code:"string"},{code:"uri"},{code:"Attachment"},{code:"Coding"},{code:"Quantity"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}]},{id:"Questionnaire.item.item",path:"Questionnaire.item.item",min:0,max:"*"}]}},{resourceType:"StructureDefinition",id:"ServiceRequest",name:"ServiceRequest",type:"ServiceRequest",snapshot:{element:[{id:"ServiceRequest",path:"ServiceRequest",min:0,max:"*"},{id:"ServiceRequest.id",path:"ServiceRequest.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"ServiceRequest.meta",path:"ServiceRequest.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"ServiceRequest.implicitRules",path:"ServiceRequest.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"ServiceRequest.language",path:"ServiceRequest.language",min:0,max:"1",type:[{code:"code"}]},{id:"ServiceRequest.text",path:"ServiceRequest.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"ServiceRequest.contained",path:"ServiceRequest.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"ServiceRequest.extension",path:"ServiceRequest.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"ServiceRequest.modifierExtension",path:"ServiceRequest.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"ServiceRequest.identifier",path:"ServiceRequest.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"ServiceRequest.instantiatesCanonical",path:"ServiceRequest.instantiatesCanonical",min:0,max:"*",type:[{code:"canonical",targetProfile:["http://hl7.org/fhir/StructureDefinition/ActivityDefinition","http://hl7.org/fhir/StructureDefinition/PlanDefinition"]}]},{id:"ServiceRequest.instantiatesUri",path:"ServiceRequest.instantiatesUri",min:0,max:"*",type:[{code:"uri"}]},{id:"ServiceRequest.basedOn",path:"ServiceRequest.basedOn",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/CarePlan","http://hl7.org/fhir/StructureDefinition/ServiceRequest","http://hl7.org/fhir/StructureDefinition/MedicationRequest"]}]},{id:"ServiceRequest.replaces",path:"ServiceRequest.replaces",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"ServiceRequest.requisition",path:"ServiceRequest.requisition",min:0,max:"1",type:[{code:"Identifier"}]},{id:"ServiceRequest.status",path:"ServiceRequest.status",min:1,max:"1",type:[{code:"code"}]},{id:"ServiceRequest.intent",path:"ServiceRequest.intent",min:1,max:"1",type:[{code:"code"}]},{id:"ServiceRequest.category",path:"ServiceRequest.category",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"ServiceRequest.priority",path:"ServiceRequest.priority",min:0,max:"1",type:[{code:"code"}]},{id:"ServiceRequest.doNotPerform",path:"ServiceRequest.doNotPerform",min:0,max:"1",type:[{code:"boolean"}]},{id:"ServiceRequest.code",path:"ServiceRequest.code",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"ServiceRequest.orderDetail",path:"ServiceRequest.orderDetail",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"ServiceRequest.quantity[x]",path:"ServiceRequest.quantity[x]",min:0,max:"1",type:[{code:"Quantity"},{code:"Ratio"},{code:"Range"}]},{id:"ServiceRequest.subject",path:"ServiceRequest.subject",min:1,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Location","http://hl7.org/fhir/StructureDefinition/Device"]}]},{id:"ServiceRequest.encounter",path:"ServiceRequest.encounter",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Encounter"]}]},{id:"ServiceRequest.occurrence[x]",path:"ServiceRequest.occurrence[x]",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"},{code:"Timing"}]},{id:"ServiceRequest.asNeeded[x]",path:"ServiceRequest.asNeeded[x]",min:0,max:"1",type:[{code:"boolean"},{code:"CodeableConcept"}]},{id:"ServiceRequest.authoredOn",path:"ServiceRequest.authoredOn",min:0,max:"1",type:[{code:"dateTime"}]},{id:"ServiceRequest.requester",path:"ServiceRequest.requester",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/RelatedPerson","http://hl7.org/fhir/StructureDefinition/Device"]}]},{id:"ServiceRequest.performerType",path:"ServiceRequest.performerType",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"ServiceRequest.performer",path:"ServiceRequest.performer",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole","http://hl7.org/fhir/StructureDefinition/Organization","http://hl7.org/fhir/StructureDefinition/CareTeam","http://hl7.org/fhir/StructureDefinition/HealthcareService","http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/RelatedPerson"]}]},{id:"ServiceRequest.locationCode",path:"ServiceRequest.locationCode",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"ServiceRequest.locationReference",path:"ServiceRequest.locationReference",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"ServiceRequest.reasonCode",path:"ServiceRequest.reasonCode",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"ServiceRequest.reasonReference",path:"ServiceRequest.reasonReference",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Condition","http://hl7.org/fhir/StructureDefinition/Observation","http://hl7.org/fhir/StructureDefinition/DiagnosticReport","http://hl7.org/fhir/StructureDefinition/DocumentReference"]}]},{id:"ServiceRequest.insurance",path:"ServiceRequest.insurance",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Coverage","http://hl7.org/fhir/StructureDefinition/ClaimResponse"]}]},{id:"ServiceRequest.supportingInfo",path:"ServiceRequest.supportingInfo",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Resource"]}]},{id:"ServiceRequest.specimen",path:"ServiceRequest.specimen",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Specimen"]}]},{id:"ServiceRequest.bodySite",path:"ServiceRequest.bodySite",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"ServiceRequest.note",path:"ServiceRequest.note",min:0,max:"*",type:[{code:"Annotation"}]},{id:"ServiceRequest.patientInstruction",path:"ServiceRequest.patientInstruction",min:0,max:"1",type:[{code:"string"}]},{id:"ServiceRequest.relevantHistory",path:"ServiceRequest.relevantHistory",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Provenance"]}]}]}},{resourceType:"StructureDefinition",id:"Specimen",name:"Specimen",type:"Specimen",snapshot:{element:[{id:"Specimen",path:"Specimen",min:0,max:"*"},{id:"Specimen.id",path:"Specimen.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Specimen.meta",path:"Specimen.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"Specimen.implicitRules",path:"Specimen.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"Specimen.language",path:"Specimen.language",min:0,max:"1",type:[{code:"code"}]},{id:"Specimen.text",path:"Specimen.text",min:0,max:"1",type:[{code:"Narrative"}]},{id:"Specimen.contained",path:"Specimen.contained",min:0,max:"*",type:[{code:"Resource"}]},{id:"Specimen.extension",path:"Specimen.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.modifierExtension",path:"Specimen.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.identifier",path:"Specimen.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Specimen.accessionIdentifier",path:"Specimen.accessionIdentifier",min:0,max:"1",type:[{code:"Identifier"}]},{id:"Specimen.status",path:"Specimen.status",min:0,max:"1",type:[{code:"code"}]},{id:"Specimen.type",path:"Specimen.type",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Specimen.subject",path:"Specimen.subject",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/Substance","http://hl7.org/fhir/StructureDefinition/Location"]}]},{id:"Specimen.receivedTime",path:"Specimen.receivedTime",min:0,max:"1",type:[{code:"dateTime"}]},{id:"Specimen.parent",path:"Specimen.parent",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Specimen"]}]},{id:"Specimen.request",path:"Specimen.request",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]}]},{id:"Specimen.collection",path:"Specimen.collection",min:0,max:"1",type:[{code:"BackboneElement"}]},{id:"Specimen.collection.id",path:"Specimen.collection.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Specimen.collection.extension",path:"Specimen.collection.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.collection.modifierExtension",path:"Specimen.collection.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.collection.collector",path:"Specimen.collection.collector",min:0,max:"1",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Practitioner","http://hl7.org/fhir/StructureDefinition/PractitionerRole"]}]},{id:"Specimen.collection.collected[x]",path:"Specimen.collection.collected[x]",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"}]},{id:"Specimen.collection.duration",path:"Specimen.collection.duration",min:0,max:"1",type:[{code:"Duration"}]},{id:"Specimen.collection.quantity",path:"Specimen.collection.quantity",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Specimen.collection.method",path:"Specimen.collection.method",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Specimen.collection.bodySite",path:"Specimen.collection.bodySite",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Specimen.collection.fastingStatus[x]",path:"Specimen.collection.fastingStatus[x]",min:0,max:"1",type:[{code:"CodeableConcept"},{code:"Duration"}]},{id:"Specimen.processing",path:"Specimen.processing",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Specimen.processing.id",path:"Specimen.processing.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Specimen.processing.extension",path:"Specimen.processing.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.processing.modifierExtension",path:"Specimen.processing.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.processing.description",path:"Specimen.processing.description",min:0,max:"1",type:[{code:"string"}]},{id:"Specimen.processing.procedure",path:"Specimen.processing.procedure",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Specimen.processing.additive",path:"Specimen.processing.additive",min:0,max:"*",type:[{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Substance"]}]},{id:"Specimen.processing.time[x]",path:"Specimen.processing.time[x]",min:0,max:"1",type:[{code:"dateTime"},{code:"Period"}]},{id:"Specimen.container",path:"Specimen.container",min:0,max:"*",type:[{code:"BackboneElement"}]},{id:"Specimen.container.id",path:"Specimen.container.id",min:0,max:"1",type:[{code:"http://hl7.org/fhirpath/System.String"}]},{id:"Specimen.container.extension",path:"Specimen.container.extension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.container.modifierExtension",path:"Specimen.container.modifierExtension",min:0,max:"*",type:[{code:"Extension"}]},{id:"Specimen.container.identifier",path:"Specimen.container.identifier",min:0,max:"*",type:[{code:"Identifier"}]},{id:"Specimen.container.description",path:"Specimen.container.description",min:0,max:"1",type:[{code:"string"}]},{id:"Specimen.container.type",path:"Specimen.container.type",min:0,max:"1",type:[{code:"CodeableConcept"}]},{id:"Specimen.container.capacity",path:"Specimen.container.capacity",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Specimen.container.specimenQuantity",path:"Specimen.container.specimenQuantity",min:0,max:"1",type:[{code:"Quantity"}]},{id:"Specimen.container.additive[x]",path:"Specimen.container.additive[x]",min:0,max:"1",type:[{code:"CodeableConcept"},{code:"Reference",targetProfile:["http://hl7.org/fhir/StructureDefinition/Substance"]}]},{id:"Specimen.condition",path:"Specimen.condition",min:0,max:"*",type:[{code:"CodeableConcept"}]},{id:"Specimen.note",path:"Specimen.note",min:0,max:"*",type:[{code:"Annotation"}]}]}},{resourceType:"StructureDefinition",id:"Bot",name:"Bot",snapshot:{element:[{id:"Bot.id",path:"Bot.id",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.meta",path:"Bot.meta",min:0,max:"1",type:[{code:"Meta"}]},{id:"Bot.implicitRules",path:"Bot.implicitRules",min:0,max:"1",type:[{code:"uri"}]},{id:"Bot.language",path:"Bot.language",min:0,max:"1",type:[{code:"code"}]},{id:"Bot.name",path:"Bot.name",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.description",path:"Bot.description",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.runtimeVersion",path:"Bot.runtimeVersion",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.photo",path:"Bot.photo",min:0,max:"1",type:[{code:"Attachment"}]},{id:"Bot.code",path:"Bot.code",min:0,max:"1",type:[{code:"string"}]},{id:"Bot.runAsUser",path:"Bot.runAsUser",min:0,max:"1",type:[{code:"boolean"}]}]}}],SearchParameterList:[...L]}},W={resourceType:"ValueSet",expansion:{contains:[{system:"x",code:"test-code",display:"Test Display"}]}},V={resourceType:"Questionnaire",id:"workflow-questionnaire-1",name:"Patient Registration",title:"Patient Registration",subjectType:["Patient"],item:[{linkId:"1",text:"First question",type:"string"}]},F={resourceType:"Questionnaire",id:"workflow-questionnaire-2",name:"Surgery History",title:"Surgery History",subjectType:["Patient"],item:[{linkId:"1",text:"First question",type:"string"}]},J={resourceType:"Questionnaire",id:"workflow-questionnaire-3",name:"Family Health History",title:"Family Health History",subjectType:["Patient"],item:[{linkId:"1",text:"First question",type:"string"}]},G={resourceType:"PlanDefinition",id:"workflow-plan-definition-1",title:"Example Plan Definition",action:[{title:V.title,definitionCanonical:t(V)},{title:F.title,definitionCanonical:t(F)},{title:J.title,definitionCanonical:t(J)}]},_={resourceType:"QuestionnaireResponse",id:"workflow-questionnaire-response-1",questionnaire:t(V),subject:e(b),source:e(b)},Z={resourceType:"Task",id:"workflow-task-1",status:"completed",meta:{author:e(b)},requester:e(x),input:[{valueReference:e(V)}],output:[{valueReference:e(_)}]},$={resourceType:"Task",id:"workflow-task-2",status:"requested",meta:{author:e(x)},requester:e(x),input:[{valueReference:e(F)}]},K={resourceType:"Task",id:"workflow-task-3",status:"requested",meta:{author:e(x)},requester:e(x),input:[{valueReference:e(J)}]},X={resourceType:"RequestGroup",id:"workflow-request-group-1",instantiatesCanonical:[t(G)],status:"active",action:[{title:V.title,resource:e(Z)},{title:F.title,resource:e($)},{title:J.title,resource:e(K)}]};function Y(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}function ee(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,i):o?o.value=i:t.set(e,i),i}var te,ie;class ne{constructor(){te.set(this,void 0),ie.set(this,void 0),ee(this,te,{},"f"),ee(this,ie,{},"f")}createResource(e){var t,i;const n=JSON.parse(JSON.stringify(e));n.id||(n.id=this.generateId()),n.meta||(n.meta={}),(null===(t=n.meta)||void 0===t?void 0:t.versionId)||(n.meta.versionId=this.generateId()),(null===(i=n.meta)||void 0===i?void 0:i.lastUpdated)||(n.meta.lastUpdated=(new Date).toISOString());const{resourceType:o,id:a}=n;return o in Y(this,te,"f")||(Y(this,te,"f")[o]={}),o in Y(this,ie,"f")||(Y(this,ie,"f")[o]={}),a in Y(this,ie,"f")[o]||(Y(this,ie,"f")[o][a]=[]),Y(this,te,"f")[o][a]=n,Y(this,ie,"f")[o][a].push(n),n}updateResource(e){const t=JSON.parse(JSON.stringify(e));return t.meta&&(t.meta.versionId&&delete t.meta.versionId,t.meta.lastUpdated&&delete t.meta.lastUpdated),this.createResource(t)}readResource(e,t){var i,n;return null===(n=null===(i=Y(this,te,"f"))||void 0===i?void 0:i[e])||void 0===n?void 0:n[t]}readHistory(e,t){var i,n,o;return{resourceType:"Bundle",type:"history",entry:(null!==(o=null===(n=null===(i=Y(this,ie,"f"))||void 0===i?void 0:i[e])||void 0===n?void 0:n[t])&&void 0!==o?o:[]).sort(((e,t)=>{var i,n,o;return-(null===(n=null===(i=e.meta)||void 0===i?void 0:i.lastUpdated)||void 0===n?void 0:n.localeCompare(null===(o=t.meta)||void 0===o?void 0:o.lastUpdated))})).map((e=>({resource:e})))}}readVersion(e,t,i){var n,o,a;return null===(a=null===(o=null===(n=Y(this,ie,"f"))||void 0===n?void 0:n[e])||void 0===o?void 0:o[t])||void 0===a?void 0:a.find((e=>{var t;return(null===(t=e.meta)||void 0===t?void 0:t.versionId)===i}))}search(e){var t;const{resourceType:i}=e,n=null!==(t=Y(this,te,"f")[i])&&void 0!==t?t:{},o=Object.values(n).filter((t=>function(e,t){if(t.resourceType!==e.resourceType)return!1;if(t.filters)for(const i of t.filters)if(!oe(e,i))return!1;return!0}(t,e)));return{resourceType:"Bundle",type:"searchset",entry:o.map((e=>({resource:e}))),total:o.length}}deleteResource(e,t){var i,n;(null===(n=null===(i=Y(this,te,"f"))||void 0===i?void 0:i[e])||void 0===n?void 0:n[t])&&delete Y(this,te,"f")[e][t]}generateId(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}function oe(e,t){for(const i of t.value.split(","))if(ae(e,t,i))return!0;return!1}function ae(e,t,o){const a=t.code.replace(/-([a-z])/g,((e,t)=>t.toUpperCase())),r=i(a,e),c=""===o||r.some((e=>JSON.stringify(e).toLowerCase().includes(o.toLowerCase())));return t.operator===n.NOT_EQUALS?!c:c}te=new WeakMap,ie=new WeakMap;class re extends o{constructor(e){const t=new ce(null==e?void 0:e.debug);super({baseUrl:"https://example.com/",clientId:"my-client-id",createPdf:(e,i,n)=>t.mockCreatePdf(e,i,n),fetch:(e,i)=>t.mockFetch(e,i)}),this.debug=!!(null==e?void 0:e.debug)}clear(){super.clear(),this.activeLoginOverride=void 0}getProfile(){return{resourceType:"Practitioner",id:"123",meta:{versionId:"456"}}}setActiveLoginOverride(e){this.activeLoginOverride=e}getActiveLogin(){return void 0!==this.activeLoginOverride?this.activeLoginOverride:super.getActiveLogin()}createBinary(e,t,i){return(null==t?void 0:t.endsWith(".exe"))?Promise.reject(a("Invalid file type")):Promise.resolve({resourceType:"Binary",title:t,contentType:i,url:"https://example.com/binary/123"})}}class ce{constructor(e=!1){this.debug=e,this.mockRepo=new ne,this.initMockRepo()}mockFetch(e,t){const i=t.method||"GET",n=e.replace("https://example.com/","");this.debug&&console.log("MockClient",i,n);const o=this.mockHandler(i,n,t);return this.debug&&!o&&console.log("MockClient: not found",i,n),this.debug&&console.log("MockClient",JSON.stringify(o,null,2)),"OperationOutcome"!==(null==o?void 0:o.resourceType)||r(o)?Promise.resolve({ok:!0,blob:()=>Promise.resolve(o),json:()=>Promise.resolve(o)}):Promise.reject(o)}mockCreatePdf(e,t,i){return this.debug&&(console.log("Mock Client: createPdf("),console.log(` ${JSON.stringify(e,null,2)},`),console.log(` ${JSON.stringify(t,null,2)},`),console.log(` ${JSON.stringify(i,null,2)});`)),Promise.resolve({})}mockHandler(e,t,i){return t.startsWith("admin/")?this.mockAdminHandler(e,t):t.startsWith("auth/")?this.mockAuthHandler(e,t,i):t.startsWith("oauth2/")?this.mockOAuthHandler(e,t,i):t.startsWith("fhir/R4")?this.mockFhirHandler(e,t,i):null}mockAdminHandler(e,t){return t.startsWith("admin/projects/123")?{project:{id:"123",name:"Project 123"},members:[{id:"123",profile:{reference:"Practitioner/123",display:"Alice Smith"},role:"owner"},{id:"888",profile:{reference:"ClientApplication/123",display:"Test Client"},role:"client"},{id:"999",profile:{reference:"Bot/123",display:"Test Bot"},role:"bot"}]}:{ok:!0}}mockAuthHandler(e,t,i){return t.startsWith("auth/changepassword")?this.mockChangePasswordHandler(e,t,i):t.startsWith("auth/login")?this.mockLoginHandler(e,t,i):t.startsWith("auth/setpassword")?this.mockSetPasswordHandler(e,t,i):t.startsWith("auth/newuser")?this.mockNewUserHandler(e,t,i):t.startsWith("auth/newproject")||t.startsWith("auth/newpatient")?{code:"xyz"}:t.startsWith("auth/resetpassword")?this.mockResetPasswordHandler(e,t,i):t.startsWith("auth/me")?{profile:{reference:"Practitioner/123"}}:null}mockChangePasswordHandler(e,t,i){const{body:n}=i,{oldPassword:o}=JSON.parse(n);return"orange"===o?c:{resourceType:"OperationOutcome",issue:[{expression:["oldPassword"],details:{text:"Incorrect password"}}]}}mockLoginHandler(e,t,i){const{body:n}=i,{password:o}=JSON.parse(n);return"password"===o?{code:"xyz"}:{resourceType:"OperationOutcome",issue:[{expression:["password"],details:{text:"Invalid password"}}]}}mockSetPasswordHandler(e,t,i){const{body:n}=i,{password:o}=JSON.parse(n);return"orange"===o?c:{resourceType:"OperationOutcome",issue:[{expression:["password"],details:{text:"Invalid password"}}]}}mockNewUserHandler(e,t,i){const{body:n}=i,{email:o,password:a}=JSON.parse(n);return"george@example.com"===o&&"password"===a?c:{resourceType:"OperationOutcome",issue:[{details:{text:"Invalid"}}]}}mockResetPasswordHandler(e,t,i){const{body:n}=i,{email:o}=JSON.parse(n);return"admin@example.com"===o?c:{resourceType:"OperationOutcome",issue:[{expression:["email"],details:{text:"Email not found"}}]}}mockOAuthHandler(e,t,i){return t.startsWith("oauth2/token")?{access_token:"header."+window.btoa(JSON.stringify({client_id:"my-client-id"}))+".signature"}:null}initMockRepo(){this.mockRepo.createResource(E),this.mockRepo.createResource(b),this.mockRepo.createResource(m),this.mockRepo.createResource(u),this.mockRepo.createResource(h),this.mockRepo.createResource(S),this.mockRepo.createResource(D),this.mockRepo.createResource(A),this.mockRepo.createResource(O),this.mockRepo.createResource(C),this.mockRepo.createResource(T),this.mockRepo.createResource(q),this.mockRepo.createResource(k),this.mockRepo.createResource(Q),this.mockRepo.createResource(z),this.mockRepo.createResource(w),this.mockRepo.createResource(B),this.mockRepo.createResource(H),this.mockRepo.createResource(l),this.mockRepo.createResource(f),this.mockRepo.createResource(v),this.mockRepo.createResource(R),this.mockRepo.createResource(I),this.mockRepo.createResource(N),this.mockRepo.createResource(j),this.mockRepo.createResource(y),this.mockRepo.createResource(x),this.mockRepo.createResource(g),this.mockRepo.createResource(V),this.mockRepo.createResource(F),this.mockRepo.createResource(J),this.mockRepo.createResource(G),this.mockRepo.createResource(_),this.mockRepo.createResource(Z),this.mockRepo.createResource($),this.mockRepo.createResource(K),this.mockRepo.createResource(X),P.forEach((e=>this.mockRepo.createResource(e)))}mockFhirHandler(e,t,i){const n=t.includes("?")?t.substring(0,t.indexOf("?")):t,o=/fhir\/R4\/?([^/]+)?\/?([^/]+)?\/?([^/]+)?\/?([^/]+)?/.exec(n),a=null==o?void 0:o[1],r=null==o?void 0:o[2],c=null==o?void 0:o[3],s=null==o?void 0:o[4];if(n.startsWith("fhir/R4/ValueSet/$expand"))return W;if("fhir/R4/$graphql"===n)return this.mockFhirGraphqlHandler(e,n,i);if("not-found"===n||"not-found"===r)return d;if("POST"===e)return a&&r&&c?{}:a?this.mockRepo.createResource(JSON.parse(i.body)):this.mockFhirBatchHandler(e,n,i);if("GET"===e){if(a&&r&&s)return this.mockRepo.readVersion(a,r,s);if(a&&r&&"_history"===c)return this.mockRepo.readHistory(a,r);if(a&&r)return this.mockRepo.readResource(a,r);if(a)return this.mockRepo.search(p(t))}else{if("PUT"===e)return this.mockRepo.updateResource(JSON.parse(i.body));if("DELETE"===e)return a&&r?this.mockRepo.deleteResource(a,r):d}}mockFhirGraphqlHandler(e,t,i){const{body:n}=i;return n.includes("ResourceList: ServiceRequestList")?{data:{ResourceList:[Object.assign(Object.assign({},I),{ObservationList:[q,k,Q,z,w,B]})]}}:U}mockFhirBatchHandler(e,t,i){var n;const{body:o}=i;return{resourceType:"Bundle",type:"batch-response",entry:null===(n=JSON.parse(o).entry)||void 0===n?void 0:n.map((e=>{var t,i;const n="fhir/R4/"+(null===(t=null==e?void 0:e.request)||void 0===t?void 0:t.url),o=null===(i=null==e?void 0:e.request)||void 0===i?void 0:i.method,a=this.mockHandler(o,n,null);return"OperationOutcome"===(null==a?void 0:a.resourceType)?{resource:a,response:{status:s(a).toString()}}:a?{resource:a,response:{status:"200"}}:{resource:d,response:{status:"404"}}}))}}}export{j as BartSimpson,f as DifferentOrganization,x as DrAliceSmith,y as DrAliceSmithPreviousVersion,g as DrAliceSmithSchedule,P as DrAliceSmithSlots,m as ExampleAccessPolicy,M as ExampleAuditEvent,S as ExampleBot,D as ExampleClient,v as ExampleQuestionnaire,R as ExampleQuestionnaireResponse,u as ExampleStatusValueSet,N as ExampleSubscription,h as ExampleUserConfiguration,G as ExampleWorkflowPlanDefinition,V as ExampleWorkflowQuestionnaire1,F as ExampleWorkflowQuestionnaire2,J as ExampleWorkflowQuestionnaire3,_ as ExampleWorkflowQuestionnaireResponse1,X as ExampleWorkflowRequestGroup,Z as ExampleWorkflowTask1,$ as ExampleWorkflowTask2,K as ExampleWorkflowTask3,U as GraphQLSchemaResponse,C as HomerCommunication,A as HomerDiagnosticReport,O as HomerEncounter,T as HomerMedia,q as HomerObservation1,k as HomerObservation2,Q as HomerObservation3,z as HomerObservation4,w as HomerObservation5,B as HomerObservation6,I as HomerServiceRequest,b as HomerSimpson,E as HomerSimpsonPreviousVersion,H as HomerSimpsonSpecimen,re as MockClient,L as PatientSearchParameters,l as TestOrganization,W as exampleValueSet};
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|