From 42cdbf3f9bbe731237d1d9aaff146162a918562a Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 14:46:05 -0500 Subject: [PATCH 01/33] :white_check_mark: Adding Cypress and first tests, also adding polyfill for Fetch --- cypress.json | 6 + cypress/fixtures/resources.json | 5189 +++++++++++++++++++++++++++++++ cypress/integration/homepage.js | 130 + cypress/plugins/index.js | 21 + cypress/support/commands.js | 30 + cypress/support/index.js | 20 + package-lock.json | 926 ++++++ package.json | 7 +- src/index.js | 1 + 9 files changed, 6328 insertions(+), 2 deletions(-) create mode 100644 cypress.json create mode 100644 cypress/fixtures/resources.json create mode 100644 cypress/integration/homepage.js create mode 100644 cypress/plugins/index.js create mode 100644 cypress/support/commands.js create mode 100644 cypress/support/index.js diff --git a/cypress.json b/cypress.json new file mode 100644 index 0000000..6a81f4e --- /dev/null +++ b/cypress.json @@ -0,0 +1,6 @@ +{ + "baseUrl": "http://localhost:3000", + "env": {}, + "video": false, + "chromeWebSecurity": false +} diff --git a/cypress/fixtures/resources.json b/cypress/fixtures/resources.json new file mode 100644 index 0000000..a3ed311 --- /dev/null +++ b/cypress/fixtures/resources.json @@ -0,0 +1,5189 @@ +{ + "resourceType": "Bundle", + "id": "12345", + "meta": { + "lastUpdated": "2020-05-13T18:53:40.532+00:00" + }, + "type": "searchset", + "total": 123, + "link": [ + { + "relation": "self", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition" + } + ], + "entry": [ + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/1", + "resource": { + "resourceType": "StructureDefinition", + "id": "1", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" + }, + "url": "http://pms-fhir.org/fhir/StructureDefinition/pmsCitizenship", + "name": "PmsCitizenship", + "status": "draft", + "description": "Structure of patient citizenship", + "fhirVersion": "4.0.0", + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Patient" + }, + { + "type": "element", + "expression": "Composition" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Optional Extensions Element", + "definition": "Optional Extension Element - found in all resources.", + "min": 0, + "max": "1", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality", + "path": "Extension.extension", + "sliceName": "nationality", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality.id", + "path": "Extension.extension.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:nationality.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality.url", + "path": "Extension.extension.url", + "representation": ["xmlAttr"], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType", + "path": "Extension.extension", + "sliceName": "documentType", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType.id", + "path": "Extension.extension.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:documentType.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType.url", + "path": "Extension.extension.url", + "representation": ["xmlAttr"], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber", + "path": "Extension.extension", + "sliceName": "documentNumber", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber.id", + "path": "Extension.extension.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:documentNumber.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber.url", + "path": "Extension.extension.url", + "representation": ["xmlAttr"], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": ["xmlAttr"], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 0, + "max": "0", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "max": "1" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "rules": "open" + } + }, + { + "id": "Extension.extension:nationality", + "path": "Extension.extension", + "sliceName": "nationality", + "max": "1" + }, + { + "id": "Extension.extension:nationality.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false + }, + { + "id": "Extension.extension:nationality.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "min": 1, + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Extension.extension:documentType", + "path": "Extension.extension", + "sliceName": "documentType", + "max": "1" + }, + { + "id": "Extension.extension:documentType.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false + }, + { + "id": "Extension.extension:documentType.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "min": 1, + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Extension.extension:documentNumber", + "path": "Extension.extension", + "sliceName": "documentNumber", + "max": "1" + }, + { + "id": "Extension.extension:documentNumber.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false + }, + { + "id": "Extension.extension:documentNumber.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "min": 1, + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "max": "0" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/619087", + "resource": { + "resourceType": "StructureDefinition", + "id": "619087", + "meta": { + "versionId": "6", + "lastUpdated": "2020-02-10T19:51:23.903+00:00", + "source": "#Y1V9dg0PSNL59Txf" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/619087", + "name": "BloodPressure", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Observation", + "path": "Observation", + "short": "Vérnyomás profil", + "definition": "Vérnyomás profil, bal-, jobb kar, szisztolés, diasztolés" + }, + { + "id": "Observation.identifier.system", + "path": "Observation.identifier.system", + "min": 1 + }, + { + "id": "Observation.identifier.value", + "path": "Observation.identifier.value", + "min": 1 + }, + { + "id": "Observation.code.coding", + "path": "Observation.code.coding", + "max": "1" + }, + { + "id": "Observation.code.coding.code", + "path": "Observation.code.coding.code", + "fixedCode": "85354-9" + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient" + ] + } + ] + }, + { + "id": "Observation.effective[x]:effectiveDateTime", + "path": "Observation.effectiveDateTime", + "sliceName": "effectiveDateTime", + "short": "Mintevétel ideje", + "min": 1, + "type": [ + { + "code": "dateTime" + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "max": "0" + }, + { + "id": "Observation.component", + "path": "Observation.component", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "code.coding.code" + } + ], + "rules": "open" + } + }, + { + "id": "Observation.component:Systolic", + "path": "Observation.component", + "sliceName": "Systolic", + "label": "Szisztolés", + "min": 1, + "max": "1" + }, + { + "id": "Observation.component:Systolic.code.coding.system", + "path": "Observation.component.code.coding.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Observation.component:Systolic.code.coding.code", + "path": "Observation.component.code.coding.code", + "fixedCode": "8480-6" + }, + { + "id": "Observation.component:Systolic.value[x]:valueQuantity", + "path": "Observation.component.valueQuantity", + "sliceName": "valueQuantity", + "min": 1, + "type": [ + { + "code": "Quantity" + } + ] + }, + { + "id": "Observation.component:Systolic.value[x]:valueQuantity.unit", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "Observation.component.valueQuantity.unit", + "min": 1, + "fixedString": "mm[Hg]" + }, + { + "id": "Observation.component:Systolic.value[x]:valueQuantity.system", + "path": "Observation.component.valueQuantity.system", + "min": 1, + "fixedUri": "http://unitsofmeasure.org" + }, + { + "id": "Observation.component:Diastolic", + "path": "Observation.component", + "sliceName": "Diastolic", + "label": "Diasztolés", + "min": 1, + "max": "1" + }, + { + "id": "Observation.component:Diastolic.code.coding.code", + "path": "Observation.component.code.coding.code", + "fixedCode": "8462-4" + }, + { + "id": "Observation.component:Diastolic.value[x]:valueQuantity", + "path": "Observation.component.valueQuantity", + "sliceName": "valueQuantity", + "min": 1, + "type": [ + { + "code": "Quantity" + } + ] + }, + { + "id": "Observation.component:Diastolic.value[x]:valueQuantity.unit", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "Observation.component.valueQuantity.unit", + "min": 1, + "fixedString": "mm[Hg]" + }, + { + "id": "Observation.component:Diastolic.value[x]:valueQuantity.system", + "path": "Observation.component.valueQuantity.system", + "min": 1, + "fixedUri": "http://unitsofmeasure.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/structuredefinition", + "resource": { + "resourceType": "StructureDefinition", + "id": "structuredefinition", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-23T05:56:25.110+00:00", + "source": "#b7904edd144c75d2" + }, + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition", + "name": "StructureDefinitionSleep", + "status": "draft", + "date": "2019-08-21", + "kind": "resource", + "abstract": true + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697625", + "resource": { + "resourceType": "StructureDefinition", + "id": "697625", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T03:16:31.994+00:00", + "source": "#1aQ03bcu7wC09AvJ" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient3", + "name": "TestEncounter", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Encounter", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient2", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697626", + "resource": { + "resourceType": "StructureDefinition", + "id": "697626", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T03:16:49.726+00:00", + "source": "#JfS3mOrpkCfkEHZX" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient4", + "name": "TestSpecimen", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Specimen", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient3", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697623", + "resource": { + "resourceType": "StructureDefinition", + "id": "697623", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T03:13:14.988+00:00", + "source": "#B7YNDXX9geGPTmHk" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient1", + "name": "TestGroup", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Group", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697624", + "resource": { + "resourceType": "StructureDefinition", + "id": "697624", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T03:14:13.142+00:00", + "source": "#eqBsP5F2whb0EzFA" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient2", + "name": "TestCondition", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Condition", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient1", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697215", + "resource": { + "resourceType": "StructureDefinition", + "id": "697215", + "meta": { + "versionId": "2", + "lastUpdated": "2020-03-23T03:27:39.407+00:00", + "source": "#XrgHxgeriZdTbdtB" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient", + "name": "DemoPatient", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Patient", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/Patient", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Patient", + "path": "Patient", + "short": "Information about an individual or animal receiving health care services", + "definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.", + "alias": ["SubjectOfCare Client Resident"], + "min": 0, + "max": "*", + "base": { + "path": "Patient", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.div.exists()", + "xpath": "exists(f:text/h:div)", + "source": "DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": "Patient[classCode=PAT]" + }, + { + "identity": "cda", + "map": "ClinicalDocument.recordTarget.patientRole" + } + ] + }, + { + "id": "Patient.id", + "path": "Patient.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "id" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Patient.implicitRules", + "path": "Patient.implicitRules", + "short": "A set of rules under which this content was created", + "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.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Patient.language", + "path": "Patient.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + } + }, + { + "id": "Patient.racee", + "path": "Patient.racee", + "short": "Race of the patient", + "definition": "Race", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.racee", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + } + }, + { + "id": "Patient.text", + "path": "Patient.text", + "short": "Text summary of the resource, for human interpretation", + "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.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": ["narrative", "html", "xhtml", "display"], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Patient.contained", + "path": "Patient.contained", + "short": "Contained, inline Resources", + "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.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.extension", + "path": "Patient.extension", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.modifierExtension", + "path": "Patient.modifierExtension", + "short": "Extensions that cannot be ignored", + "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).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "short": "An identifier for this patient", + "definition": "An identifier for this patient.", + "requirements": "Patients are almost always assigned specific numerical identifiers.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": "id" + }, + { + "identity": "cda", + "map": ".id" + } + ] + }, + { + "id": "Patient.active", + "path": "Patient.active", + "short": "Whether this patient's record is in active use", + "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.", + "comment": "If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.", + "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.active", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element", + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid", + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": "statusCode" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.name", + "path": "Patient.name", + "short": "A name associated with the patient", + "definition": "A name associated with the individual.", + "comment": "A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.", + "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.name", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "HumanName" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-5, PID-9" + }, + { + "identity": "rim", + "map": "name" + }, + { + "identity": "cda", + "map": ".patient.name" + } + ] + }, + { + "id": "Patient.telecom", + "path": "Patient.telecom", + "short": "A contact detail for the individual", + "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.", + "comment": "A Patient may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and also to help with identification. The address might not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).", + "requirements": "People have (primary) ways to contact them in some way such as phone, email.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-13, PID-14, PID-40" + }, + { + "identity": "rim", + "map": "telecom" + }, + { + "identity": "cda", + "map": ".telecom" + } + ] + }, + { + "id": "Patient.gender", + "path": "Patient.gender", + "short": "male | female | other | unknown", + "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.", + "comment": "The gender might not match the biological sex as determined by genetics or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than male and female, though the vast majority of systems and contexts only support male and female. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, social, etc.) However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice. Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosomal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error. See the Patient Gender and Sex section for additional information about communicating patient gender and sex.", + "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.gender", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdministrativeGender" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "required", + "description": "The gender of a person used for administrative purposes.", + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-8" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" + }, + { + "identity": "cda", + "map": ".patient.administrativeGenderCode" + } + ] + }, + { + "id": "Patient.birthDate", + "path": "Patient.birthDate", + "short": "The date of birth for the individual", + "definition": "The date of birth for the individual.", + "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).", + "requirements": "Age of the individual drives many clinical processes.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.birthDate", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "date" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-7" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime" + }, + { + "identity": "cda", + "map": ".patient.birthTime" + }, + { + "identity": "loinc", + "map": "21112-8" + } + ] + }, + { + "id": "Patient.deceased[x]", + "path": "Patient.deceased[x]", + "short": "Indicates if the individual is deceased or not", + "definition": "Indicates if the individual is deceased or not.", + "comment": "If there's no value in the instance, it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.", + "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.deceased[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "dateTime" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.", + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-30 (bool) and PID-29 (datetime)" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.address", + "path": "Patient.address", + "short": "An address for the individual", + "definition": "An address for the individual.", + "comment": "Patient may have multiple addresses with different uses or applicable periods.", + "requirements": "May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.address", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Address" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-11" + }, + { + "identity": "rim", + "map": "addr" + }, + { + "identity": "cda", + "map": ".addr" + } + ] + }, + { + "id": "Patient.maritalStatus", + "path": "Patient.maritalStatus", + "short": "Marital (civil) status of a patient", + "definition": "This field contains a patient's most recent marital (civil) status.", + "requirements": "Most, if not all systems capture it.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.maritalStatus", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MaritalStatus" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "extensible", + "description": "The domestic partnership status of a person.", + "valueSet": "http://hl7.org/fhir/ValueSet/marital-status" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-16" + }, + { + "identity": "rim", + "map": "player[classCode=PSN]/maritalStatusCode" + }, + { + "identity": "cda", + "map": ".patient.maritalStatusCode" + } + ] + }, + { + "id": "Patient.multipleBirth[x]", + "path": "Patient.multipleBirth[x]", + "short": "Whether patient is part of a multiple birth", + "definition": "Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).", + "comment": "Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).", + "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.multipleBirth[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "integer" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-24 (bool), PID-25 (integer)" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.photo", + "path": "Patient.photo", + "short": "Image of the patient", + "definition": "Image of the patient.", + "comment": "Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.", + "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.photo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Attachment" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-5 - needs a profile" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", + "valueString": "Contact" + } + ], + "path": "Patient.contact", + "short": "A contact party (e.g. guardian, partner, friend) for the patient", + "definition": "A contact party (e.g. guardian, partner, friend) for the patient.", + "comment": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.", + "requirements": "Need to track people you can contact about the patient.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "Element" + }, + { + "key": "pat-1", + "severity": "error", + "human": "SHALL at least contain a contact's details or a reference to an organization", + "expression": "name.exists() or telecom.exists() or address.exists() or organization.exists()", + "xpath": "exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.id", + "path": "Patient.contact.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.extension", + "path": "Patient.contact.extension", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.modifierExtension", + "path": "Patient.contact.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "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).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", + "alias": ["extensions", "user content", "modifiers"], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.contact.relationship", + "path": "Patient.contact.relationship", + "short": "The kind of relationship", + "definition": "The nature of the relationship between the patient and the contact person.", + "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact.relationship", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ContactRelationship" + } + ], + "strength": "extensible", + "description": "The nature of the relationship between a patient and a contact person for that patient.", + "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship" + }, + "mapping": [ + { + "identity": "v2", + "map": "NK1-7, NK1-3" + }, + { + "identity": "rim", + "map": "code" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.name", + "path": "Patient.contact.name", + "short": "A name associated with the contact person", + "definition": "A name associated with the contact person.", + "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.name", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "HumanName" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-2" + }, + { + "identity": "rim", + "map": "name" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.telecom", + "path": "Patient.contact.telecom", + "short": "A contact detail for the person", + "definition": "A contact detail for the person, e.g. a telephone number or an email address.", + "comment": "Contact may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.", + "requirements": "People have (primary) ways to contact them in some way such as phone, email.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-5, NK1-6, NK1-40" + }, + { + "identity": "rim", + "map": "telecom" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.address", + "path": "Patient.contact.address", + "short": "Address for the contact person", + "definition": "Address for the contact person.", + "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.address", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Address" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-4" + }, + { + "identity": "rim", + "map": "addr" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.gender", + "path": "Patient.contact.gender", + "short": "male | female | other | unknown", + "definition": "Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.", + "requirements": "Needed to address the person correctly.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.gender", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdministrativeGender" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "required", + "description": "The gender of a person used for administrative purposes.", + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "NK1-15" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.organization", + "path": "Patient.contact.organization", + "short": "Organization that is associated with the contact", + "definition": "Organization on behalf of which the contact is acting or for which the contact is working.", + "requirements": "For guardians or business related contacts, the organization is relevant.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.organization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization" + ] + } + ], + "condition": ["pat-1"], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41" + }, + { + "identity": "rim", + "map": "scoper" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.period", + "path": "Patient.contact.period", + "short": "The period during which this contact person or organization is valid to be contacted relating to this patient", + "definition": "The period during which this contact person or organization is valid to be contacted relating to this patient.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "effectiveTime" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication", + "path": "Patient.communication", + "short": "A language which may be used to communicate with the patient about his or her health", + "definition": "A language which may be used to communicate with the patient about his or her health.", + "comment": "If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations. For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.", + "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.communication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "LanguageCommunication" + }, + { + "identity": "cda", + "map": "patient.languageCommunication" + } + ] + }, + { + "id": "Patient.communication.id", + "path": "Patient.communication.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication.extension", + "path": "Patient.communication.extension", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication.modifierExtension", + "path": "Patient.communication.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "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).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", + "alias": ["extensions", "user content", "modifiers"], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.communication.language", + "path": "Patient.communication.language", + "short": "The language which can be used to communicate with the patient about his or her health", + "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.", + "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.", + "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.communication.language", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-15, LAN-2" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" + }, + { + "identity": "cda", + "map": ".languageCode" + } + ] + }, + { + "id": "Patient.communication.preferred", + "path": "Patient.communication.preferred", + "short": "Language preference indicator", + "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).", + "comment": "This language is specifically identified for communicating healthcare information.", + "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.communication.preferred", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-15" + }, + { + "identity": "rim", + "map": "preferenceInd" + }, + { + "identity": "cda", + "map": ".preferenceInd" + } + ] + }, + { + "id": "Patient.generalPractitioner", + "path": "Patient.generalPractitioner", + "short": "Patient's nominated primary care provider", + "definition": "Patient's nominated care provider.", + "comment": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles. It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.", + "alias": ["careProvider"], + "min": 0, + "max": "*", + "base": { + "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" + ] + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PD1-4" + }, + { + "identity": "rim", + "map": "subjectOf.CareEvent.performer.AssignedEntity" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.managingOrganization", + "path": "Patient.managingOrganization", + "short": "Organization that is the custodian of the patient record", + "definition": "Organization that is the custodian of the patient record.", + "comment": "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).", + "requirements": "Need to know who recognizes this patient record, manages and updates it.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.managingOrganization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization" + ] + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "scoper" + }, + { + "identity": "cda", + "map": ".providerOrganization" + } + ] + }, + { + "id": "Patient.link", + "path": "Patient.link", + "short": "Link to another patient resource that concerns the same actual person", + "definition": "Link to another patient resource that concerns the same actual patient.", + "comment": "There is no assumption that linked patient records have mutual links.", + "requirements": "There are multiple use cases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and \n* Distribution of patient information across multiple servers.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.link", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "outboundLink" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.id", + "path": "Patient.link.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.extension", + "path": "Patient.link.extension", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.modifierExtension", + "path": "Patient.link.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "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).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", + "alias": ["extensions", "user content", "modifiers"], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.link.other", + "path": "Patient.link.other", + "short": "The other patient or related person resource that the link refers to", + "definition": "The other patient resource that the link refers to.", + "comment": "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.link.other", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy", + "valueBoolean": false + } + ], + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson" + ] + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-3, MRG-1" + }, + { + "identity": "rim", + "map": "id" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.type", + "path": "Patient.link.type", + "short": "replaced-by | replaces | refer | seealso", + "definition": "The type of link between this patient resource and another patient resource.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.link.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "LinkType" + } + ], + "strength": "required", + "description": "The type of link between this patient resource and another patient resource.", + "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.0" + }, + "mapping": [ + { + "identity": "rim", + "map": "typeCode" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25232", + "resource": { + "resourceType": "StructureDefinition", + "id": "25232", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-24T07:17:35.634+00:00", + "source": "#ef600769079a2dd1" + }, + "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-execute-simple-feasibility", + "version": "0.1.0", + "name": "TaskExecuteSimpleFeasibility", + "status": "active", + "date": "2019-05-21", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": false, + "type": "Task", + "baseDefinition": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.instantiatesUri", + "path": "Task.instantiatesUri", + "fixedUri": "http://highmed.org/bpe/Process/executeSimpleFeasibility/1.0.0" + }, + { + "id": "Task.input", + "path": "Task.input", + "min": 4 + }, + { + "id": "Task.input:message-name", + "path": "Task.input", + "sliceName": "message-name" + }, + { + "id": "Task.input:message-name.value[x]", + "path": "Task.input.value[x]", + "fixedString": "executeSimpleFeasibilityMessage" + }, + { + "id": "Task.input:research-study", + "path": "Task.input", + "sliceName": "research-study", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:research-study.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:research-study.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/task-input" + }, + { + "id": "Task.input:research-study.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "research-study-reference" + }, + { + "id": "Task.input:research-study.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://highmed.org/fhir/StructureDefinition/highmed-research-study" + ] + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25233", + "resource": { + "resourceType": "StructureDefinition", + "id": "25233", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-24T07:18:30.536+00:00", + "source": "#3e8a9cc9745882e5" + }, + "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", + "version": "0.1.0", + "name": "TaskBase", + "status": "active", + "date": "2019-05-21", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": true, + "type": "Task", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.instantiatesUri", + "path": "Task.instantiatesUri", + "min": 1 + }, + { + "id": "Task.intent", + "path": "Task.intent", + "fixedCode": "order" + }, + { + "id": "Task.authoredOn", + "path": "Task.authoredOn", + "min": 1 + }, + { + "id": "Task.requester", + "path": "Task.requester", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://highmed.org/fhir/StructureDefinition/highmed-organization" + ] + } + ] + }, + { + "id": "Task.restriction", + "path": "Task.restriction", + "min": 1 + }, + { + "id": "Task.restriction.recipient", + "path": "Task.restriction.recipient", + "min": 1, + "max": "1", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://highmed.org/fhir/StructureDefinition/highmed-organization" + ] + } + ] + }, + { + "id": "Task.input", + "path": "Task.input", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "type.coding.code" + } + ], + "rules": "openAtEnd" + }, + "min": 3 + }, + { + "id": "Task.input:message-name", + "path": "Task.input", + "sliceName": "message-name", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:message-name.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:message-name.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:message-name.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "message-name" + }, + { + "id": "Task.input:message-name.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Task.input:business-key", + "path": "Task.input", + "sliceName": "business-key", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:business-key.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:business-key.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:business-key.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "business-key" + }, + { + "id": "Task.input:business-key.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Task.input:correlation-key", + "path": "Task.input", + "sliceName": "correlation-key", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:correlation-key.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:correlation-key.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:correlation-key.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "correlation-key" + }, + { + "id": "Task.input:correlation-key.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Task.output", + "path": "Task.output", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "type.coding.code" + } + ], + "rules": "open" + } + }, + { + "id": "Task.output:error", + "path": "Task.output", + "sliceName": "error" + }, + { + "id": "Task.output:error.type.coding", + "path": "Task.output.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.output:error.type.coding.system", + "path": "Task.output.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.output:error.type.coding.code", + "path": "Task.output.type.coding.code", + "fixedCode": "error" + }, + { + "id": "Task.output:error.value[x]", + "path": "Task.output.value[x]", + "type": [ + { + "code": "string" + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25234", + "resource": { + "resourceType": "StructureDefinition", + "id": "25234", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-24T07:19:08.993+00:00", + "source": "#20a371061d227b3c" + }, + "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-execute-simple-feasibility", + "version": "0.1.0", + "name": "TaskExecuteSimpleFeasibility", + "status": "active", + "date": "2019-05-21", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": false, + "type": "Task", + "baseDefinition": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.instantiatesUri", + "path": "Task.instantiatesUri", + "fixedUri": "http://highmed.org/bpe/Process/executeSimpleFeasibility/1.0.0" + }, + { + "id": "Task.input", + "path": "Task.input", + "min": 4 + }, + { + "id": "Task.input:message-name", + "path": "Task.input", + "sliceName": "message-name" + }, + { + "id": "Task.input:message-name.value[x]", + "path": "Task.input.value[x]", + "fixedString": "executeSimpleFeasibilityMessage" + }, + { + "id": "Task.input:research-study", + "path": "Task.input", + "sliceName": "research-study", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:research-study.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:research-study.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/task-input" + }, + { + "id": "Task.input:research-study.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "research-study-reference" + }, + { + "id": "Task.input:research-study.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://highmed.org/fhir/StructureDefinition/highmed-research-study" + ] + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697727", + "resource": { + "resourceType": "StructureDefinition", + "id": "697727", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T12:26:47.330+00:00", + "source": "#rKbUCnzvdd9MCZfP" + }, + "url": "https://www.ehealth.fgov.be/standards/fhir/StructureDefinition/be-eagreementmessageheader", + "name": "EAgreementMessageHeader", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "MessageHeader", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MessageHeader", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "MessageHeader.event[x]", + "path": "MessageHeader.event[x]", + "type": [ + { + "code": "Coding" + } + ] + }, + { + "id": "MessageHeader.event[x].system", + "path": "MessageHeader.event[x].system", + "fixedUri": "https://www.mycarenet.be/fhir/CodeSystem/message-events" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38344", + "resource": { + "resourceType": "StructureDefinition", + "id": "38344", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:01:41.040+00:00", + "source": "#ce2ebf25197b55bb" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_List", + "name": "DL_List", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "List", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List", + "derivation": "constraint" + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38345", + "resource": { + "resourceType": "StructureDefinition", + "id": "38345", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:01:58.701+00:00", + "source": "#98578a5737fafb37" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_Organization", + "name": "DL_Organization", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Organization", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Organization.name", + "path": "Organization.name", + "min": 1 + }, + { + "id": "Organization.contact", + "path": "Organization.contact", + "min": 1 + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38346", + "resource": { + "resourceType": "StructureDefinition", + "id": "38346", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:02:18.857+00:00", + "source": "#27217fbed1898bac" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_Practitioner", + "name": "DL_Practitioner", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Practitioner", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Practitioner.name", + "path": "Practitioner.name", + "min": 1, + "max": "1" + }, + { + "id": "Practitioner.telecom", + "path": "Practitioner.telecom", + "min": 1, + "max": "1" + }, + { + "id": "Practitioner.telecom.system", + "path": "Practitioner.telecom.system", + "fixedCode": "email" + }, + { + "id": "Practitioner.telecom.value", + "path": "Practitioner.telecom.value", + "min": 1 + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38347", + "resource": { + "resourceType": "StructureDefinition", + "id": "38347", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:02:33.125+00:00", + "source": "#45d83081a5c76a9a" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_PractitionerRole", + "name": "DL_PractitionerRole", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "PractitionerRole", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "PractitionerRole.practitioner", + "path": "PractitionerRole.practitioner", + "min": 1 + }, + { + "id": "PractitionerRole.organization", + "path": "PractitionerRole.organization", + "min": 1 + }, + { + "id": "PractitionerRole.code.coding.system", + "path": "PractitionerRole.code.coding.system", + "fixedUri": "http://snomed.info/sct" + }, + { + "id": "PractitionerRole.code.coding.code", + "path": "PractitionerRole.code.coding.code", + "fixedCode": "768816002" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38348", + "resource": { + "resourceType": "StructureDefinition", + "id": "38348", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:02:48.628+00:00", + "source": "#c7644bb4f9c6b42e" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_ResearchStudy", + "name": "DL_ResearchStudy", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "BRIDG5.1", + "uri": "https://bridgmodel.nci.nih.gov", + "name": "BRIDG 5.1 Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "clinicaltrials-gov", + "uri": "http://clinicaltrials.gov", + "name": "ClinicalTrials.gov Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "ResearchStudy", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ResearchStudy", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "ResearchStudy.title", + "path": "ResearchStudy.title", + "min": 1 + }, + { + "id": "ResearchStudy.sponsor", + "path": "ResearchStudy.sponsor", + "min": 1 + }, + { + "id": "ResearchStudy.principalInvestigator", + "path": "ResearchStudy.principalInvestigator", + "min": 1 + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38349", + "resource": { + "resourceType": "StructureDefinition", + "id": "38349", + "meta": { + "versionId": "3", + "lastUpdated": "2019-10-01T00:56:17.847+00:00", + "source": "#a4ba625d6025248c" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_Composition", + "name": "DL_Composition", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "cda", + "uri": "http://hl7.org/v3/cda", + "name": "CDA (R2)" + }, + { + "identity": "fhirdocumentreference", + "uri": "http://hl7.org/fhir/documentreference", + "name": "FHIR DocumentReference" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Composition", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Composition.section", + "path": "Composition.section", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:title", + "path": "Composition.section", + "sliceName": "title" + }, + { + "id": "Composition.section:information", + "path": "Composition.section", + "sliceName": "information" + }, + { + "id": "Composition.section:information.entry", + "path": "Composition.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:information.entry:Practitioner", + "path": "Composition.section.entry", + "sliceName": "Practitioner", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Practitioner" + ] + } + ] + }, + { + "id": "Composition.section:information.entry:Organization", + "path": "Composition.section.entry", + "sliceName": "Organization", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Organization" + ] + } + ] + }, + { + "id": "Composition.section:information.entry:ResearchStudy", + "path": "Composition.section.entry", + "sliceName": "ResearchStudy", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_ResearchStudy" + ] + } + ] + }, + { + "id": "Composition.section:relianceDetermination", + "path": "Composition.section", + "sliceName": "relianceDetermination" + }, + { + "id": "Composition.section:relianceDetermination.section", + "path": "Composition.section.section", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:relianceDetermination.section:reviewingIRB", + "path": "Composition.section.section", + "sliceName": "reviewingIRB" + }, + { + "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry", + "path": "Composition.section.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry:Organization", + "path": "Composition.section.section.entry", + "sliceName": "Organization", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Organization" + ] + } + ] + }, + { + "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry:Practitioner", + "path": "Composition.section.section.entry", + "sliceName": "Practitioner", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Practitioner" + ] + } + ] + }, + { + "id": "Composition.section:relianceDetermination.section:approvedIRBList", + "path": "Composition.section.section", + "sliceName": "approvedIRBList" + }, + { + "id": "Composition.section:relianceDetermination.section:approvedIRBList.entry", + "path": "Composition.section.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:relianceDetermination.section:approvedIRBList.entry:List", + "path": "Composition.section.section.entry", + "sliceName": "List", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_List" + ] + } + ] + }, + { + "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList", + "path": "Composition.section.section", + "sliceName": "nonApprovedIRBList" + }, + { + "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList.entry", + "path": "Composition.section.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList.entry:List", + "path": "Composition.section.section.entry", + "sliceName": "List", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_List" + ] + } + ] + }, + { + "id": "Composition.section:responsibilities", + "path": "Composition.section", + "sliceName": "responsibilities" + }, + { + "id": "Composition.section:responsibilities.section", + "path": "Composition.section.section", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:responsibilities.section:overallPIResponsibilities", + "path": "Composition.section.section", + "sliceName": "overallPIResponsibilities" + }, + { + "id": "Composition.section:responsibilities.section:siteInvestigatorResponsibilities", + "path": "Composition.section.section", + "sliceName": "siteInvestigatorResponsibilities" + }, + { + "id": "Composition.section:close", + "path": "Composition.section", + "sliceName": "close" + }, + { + "id": "Composition.section:close.entry", + "path": "Composition.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:close.entry:organization", + "path": "Composition.section.entry", + "sliceName": "organization", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Organization" + ] + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38905", + "resource": { + "resourceType": "StructureDefinition", + "id": "38905", + "meta": { + "versionId": "1", + "lastUpdated": "2019-10-01T10:23:46.874+00:00", + "source": "#0cc4be9be56ea7a5" + }, + "url": "http://highmed.org/fhir/StructureDefinition/BaseTask", + "name": "BaseTask", + "status": "draft", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": false, + "type": "Task", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.input", + "path": "Task.input", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "type.coding.system" + }, + { + "type": "value", + "path": "type.coding.code" + } + ], + "rules": "open" + }, + "min": 1 + }, + { + "id": "Task.input:baseInputSlice", + "path": "Task.input", + "sliceName": "baseInputSlice", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:baseInputSlice.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:baseInputSlice.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "base-input-slice" + }, + { + "id": "Task.input:baseInputSlice.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/39146", + "resource": { + "resourceType": "StructureDefinition", + "id": "39146", + "meta": { + "versionId": "1", + "lastUpdated": "2019-10-01T11:22:00.829+00:00", + "source": "#2416ea9716752386" + }, + "url": "http://highmed.org/fhir/StructureDefinition/ExtendedTask", + "name": "ExtendedTask", + "status": "draft", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": false, + "type": "Task", + "baseDefinition": "http://highmed.org/fhir/StructureDefinition/BaseTask", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.input", + "path": "Task.input", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "type.coding.system" + }, + { + "type": "value", + "path": "type.coding.code" + } + ], + "rules": "open" + }, + "min": 2 + }, + { + "id": "Task.input:extendedInputSlice", + "path": "Task.input", + "sliceName": "extendedInputSlice", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:extendedInputSlice.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:extendedInputSlice.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "extended-input-slice" + }, + { + "id": "Task.input:extendedInputSlice.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + } + ] +} diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js new file mode 100644 index 0000000..0b4083b --- /dev/null +++ b/cypress/integration/homepage.js @@ -0,0 +1,130 @@ +describe('Homepage', () => { + before(() => { + cy.server(); + cy.route({ + method: 'GET', + url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/**', + response: 'fixture:resources.json', + }).as('getResources'); + cy.visit('/servers'); + cy.contains('hapi').click(); + cy.contains('Launch').click(); + cy.wait('@getResources'); + }); + + beforeEach(() => { + cy.get('.header__controls-view') + .children('i') + .get('.grid') + .click(); + cy.get('.ui.card').should('exist'); + cy.get('.sortable-table').should('not.exist'); + cy.get('.prompt').clear(); + }); + + it('loads resources', () => { + cy.url().should('include', '/resources'); + cy.contains('18 total'); + }); + + it('filters search results on input', () => { + cy.get('.prompt').type('Pa'); + cy.get('.ui.search>.results').should($x => { + expect($x).to.have.length(1); + }); + }); + + it('filters results on search', () => { + cy.get('.ui.card').should($x => { + expect($x).to.have.length(18); + }); + cy.get('.prompt').type('Patient'); + cy.get('.ui.search>.results') + .should($x => { + expect($x).to.have.length(1); + }) + .click(); + cy.get('.ui.card').should($x => { + expect($x).to.have.length(1); + }); + }); + + it('selects the correct icons for various resource types', () => { + cy.contains('Base type: Patient') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'user'); + cy.contains('Base type: Specimen') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'lab'); + cy.contains('Base type: Group') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'users'); + cy.contains('Base type: Condition') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'bug'); + cy.contains('Base type: Observation') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'eye'); + cy.contains('Base type: Practitioner') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'doctor'); + cy.contains('Base type: Encounter') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'clipboard'); + }); + + it('toggles between grid and list views', () => { + cy.get('.ui.card').should('exist'); + cy.get('.sortable-table').should('not.exist'); + cy.get('.header__controls-view') + .children('i') + .get('.list') + .click(); + cy.get('.ui.card').should('not.exist'); + cy.get('.homepage') + .children('div') + .should('have.class', 'sortable-table'); + }); +}); diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js new file mode 100644 index 0000000..aa9918d --- /dev/null +++ b/cypress/plugins/index.js @@ -0,0 +1,21 @@ +/// +// *********************************************************** +// This example plugins/index.js can be used to load plugins +// +// You can change the location of this file or turn off loading +// the plugins file with the 'pluginsFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/plugins-guide +// *********************************************************** + +// This function is called when a project is opened or re-opened (e.g. due to +// the project's config changing) + +/** + * @type {Cypress.PluginConfig} + */ +module.exports = (on, config) => { + // `on` is used to hook into various events Cypress emits + // `config` is the resolved Cypress config +} diff --git a/cypress/support/commands.js b/cypress/support/commands.js new file mode 100644 index 0000000..72b931a --- /dev/null +++ b/cypress/support/commands.js @@ -0,0 +1,30 @@ +// *********************************************** +// This example commands.js shows you how to +// create various custom commands and overwrite +// existing commands. +// +// For more comprehensive examples of custom +// commands please read more here: +// https://on.cypress.io/custom-commands +// *********************************************** +// +// +// -- This is a parent command -- +// Cypress.Commands.add("login", (email, password) => { ... }) +// +// +// -- This is a child command -- +// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) +// +// +// -- This is a dual command -- +// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) +// +// +// -- This will overwrite an existing command -- +// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) +// +// Delete window.fetch on every window load +Cypress.on('window:before:load', win => { + delete win.fetch; +}); diff --git a/cypress/support/index.js b/cypress/support/index.js new file mode 100644 index 0000000..d68db96 --- /dev/null +++ b/cypress/support/index.js @@ -0,0 +1,20 @@ +// *********************************************************** +// This example support/index.js is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands' + +// Alternatively you can use CommonJS syntax: +// require('./commands') diff --git a/package-lock.json b/package-lock.json index 67273ff..08ed658 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1143,6 +1143,144 @@ "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-10.1.0.tgz", "integrity": "sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg==" }, + "@cypress/listr-verbose-renderer": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@cypress/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz", + "integrity": "sha1-p3SS9LEdzHxEajSz4ochr9M8ZCo=", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "cli-cursor": "^1.0.2", + "date-fns": "^1.27.2", + "figures": "^1.7.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "cli-cursor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", + "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=", + "dev": true, + "requires": { + "restore-cursor": "^1.0.1" + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "onetime": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", + "dev": true + }, + "restore-cursor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", + "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=", + "dev": true, + "requires": { + "exit-hook": "^1.0.0", + "onetime": "^1.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "@cypress/request": { + "version": "2.88.5", + "resolved": "https://registry.npmjs.org/@cypress/request/-/request-2.88.5.tgz", + "integrity": "sha512-TzEC1XMi1hJkywWpRfD2clreTa/Z+lOrXDCxxBTBPEcY5azdPi56A6Xw+O4tWJnaJH3iIE7G5aDXZC6JgRZLcA==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "@cypress/xvfb": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz", + "integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==", + "dev": true, + "requires": { + "debug": "^3.1.0", + "lodash.once": "^4.1.1" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, "@hapi/address": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", @@ -1398,6 +1536,15 @@ "resolved": "https://registry.npmjs.org/@restart/hooks/-/hooks-0.3.20.tgz", "integrity": "sha512-Q1eeEqcxHQ4oqty7C5Me8/hzWwdCRR643nR/6EHxv8BVxLVYHe4IoWAHg8MIGkE4VtSm3/JnNhkoLJhCkLx5aw==" }, + "@samverschueren/stream-to-observable": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz", + "integrity": "sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg==", + "dev": true, + "requires": { + "any-observable": "^0.3.0" + } + }, "@semantic-ui-react/event-stack": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@semantic-ui-react/event-stack/-/event-stack-3.1.1.tgz", @@ -1621,6 +1768,34 @@ "@babel/types": "^7.3.0" } }, + "@types/blob-util": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@types/blob-util/-/blob-util-1.3.3.tgz", + "integrity": "sha512-4ahcL/QDnpjWA2Qs16ZMQif7HjGP2cw3AGjHabybjw7Vm1EKu+cfQN1D78BaZbS1WJNa1opSMF5HNMztx7lR0w==", + "dev": true + }, + "@types/bluebird": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.29.tgz", + "integrity": "sha512-kmVtnxTuUuhCET669irqQmPAez4KFnFVKvpleVRyfC3g+SHD1hIkFZcWLim9BVcwUBLO59o8VZE4yGCmTif8Yw==", + "dev": true + }, + "@types/chai": { + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.2.7.tgz", + "integrity": "sha512-luq8meHGYwvky0O7u0eQZdA7B4Wd9owUCqvbw2m3XCrCU8mplYOujMBbvyS547AxJkC+pGnd0Cm15eNxEUNU8g==", + "dev": true + }, + "@types/chai-jquery": { + "version": "1.1.40", + "resolved": "https://registry.npmjs.org/@types/chai-jquery/-/chai-jquery-1.1.40.tgz", + "integrity": "sha512-mCNEZ3GKP7T7kftKeIs7QmfZZQM7hslGSpYzKbOlR2a2HCFf9ph4nlMRA9UnuOETeOQYJVhJQK7MwGqNZVyUtQ==", + "dev": true, + "requires": { + "@types/chai": "*", + "@types/jquery": "*" + } + }, "@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", @@ -1668,11 +1843,26 @@ "@types/istanbul-lib-report": "*" } }, + "@types/jquery": { + "version": "3.3.31", + "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.3.31.tgz", + "integrity": "sha512-Lz4BAJihoFw5nRzKvg4nawXPzutkv7wmfQ5121avptaSIXlDNJCUuxZxX/G+9EVidZGuO0UBlk+YjKbwRKJigg==", + "dev": true, + "requires": { + "@types/sizzle": "*" + } + }, "@types/json-schema": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz", "integrity": "sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==" }, + "@types/lodash": { + "version": "4.14.149", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.149.tgz", + "integrity": "sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ==", + "dev": true + }, "@types/minimatch": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", @@ -1683,6 +1873,12 @@ "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=" }, + "@types/mocha": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.7.tgz", + "integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==", + "dev": true + }, "@types/node": { "version": "13.5.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-13.5.0.tgz", @@ -1725,6 +1921,28 @@ "@types/react": "*" } }, + "@types/sinon": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-7.5.1.tgz", + "integrity": "sha512-EZQUP3hSZQyTQRfiLqelC9NMWd1kqLcmQE0dMiklxBkgi84T+cHOhnKpgk4NnOWpGX863yE6+IaGnOXUNFqDnQ==", + "dev": true + }, + "@types/sinon-chai": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-3.2.3.tgz", + "integrity": "sha512-TOUFS6vqS0PVL1I8NGVSNcFaNJtFoyZPXZ5zur+qlhDfOmQECZZM4H4kKgca6O8L+QceX/ymODZASfUfn+y4yQ==", + "dev": true, + "requires": { + "@types/chai": "*", + "@types/sinon": "*" + } + }, + "@types/sizzle": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.2.tgz", + "integrity": "sha512-7EJYyKTL7tFR8+gDbB6Wwz/arpGa0Mywk1TJbNzKzHtzbwVmY4HR9WqS5VV7dsBUKQmPNr192jHr/VpBluj/hg==", + "dev": true + }, "@types/stack-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", @@ -2156,6 +2374,12 @@ "color-convert": "^1.9.0" } }, + "any-observable": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/any-observable/-/any-observable-0.3.0.tgz", + "integrity": "sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog==", + "dev": true + }, "anymatch": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", @@ -2170,6 +2394,12 @@ "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" }, + "arch": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/arch/-/arch-2.1.1.tgz", + "integrity": "sha512-BLM56aPo9vLLFVa8+/+pJLnrZ7QGGTVHWsCwieAWT9o9K8UeGaQbzZbGoabWLOo2ksBCztoXdqBZBplqLDDCSg==", + "dev": true + }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -3144,6 +3374,12 @@ "isarray": "^1.0.0" } }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "dev": true + }, "buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", @@ -3220,6 +3456,12 @@ "unset-value": "^1.0.0" } }, + "cachedir": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz", + "integrity": "sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw==", + "dev": true + }, "call-me-maybe": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", @@ -3349,6 +3591,12 @@ "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", "integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=" }, + "check-more-types": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", + "integrity": "sha1-FCD/sQ/URNz8ebQ4kbv//TKoRgA=", + "dev": true + }, "chokidar": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.1.tgz", @@ -3483,6 +3731,103 @@ "restore-cursor": "^3.1.0" } }, + "cli-table3": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", + "integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==", + "dev": true, + "requires": { + "colors": "^1.1.2", + "object-assign": "^4.1.0", + "string-width": "^2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "cli-truncate": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-0.2.1.tgz", + "integrity": "sha1-nxXPuwcFAFNpIWxiasfQWrkN1XQ=", + "dev": true, + "requires": { + "slice-ansi": "0.0.4", + "string-width": "^1.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "slice-ansi": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz", + "integrity": "sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU=", + "dev": true + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, "cli-width": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", @@ -3617,6 +3962,13 @@ "simple-swizzle": "^0.2.2" } }, + "colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "dev": true, + "optional": true + }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -4171,6 +4523,98 @@ "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=" }, + "cypress": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-4.5.0.tgz", + "integrity": "sha512-2A4g5FW5d2fHzq8HKUGAMVTnW6P8nlWYQALiCoGN4bqBLvgwhYM/oG9oKc2CS6LnvgHFiKivKzpm9sfk3uU3zQ==", + "dev": true, + "requires": { + "@cypress/listr-verbose-renderer": "0.4.1", + "@cypress/request": "2.88.5", + "@cypress/xvfb": "1.2.4", + "@types/blob-util": "1.3.3", + "@types/bluebird": "3.5.29", + "@types/chai": "4.2.7", + "@types/chai-jquery": "1.1.40", + "@types/jquery": "3.3.31", + "@types/lodash": "4.14.149", + "@types/minimatch": "3.0.3", + "@types/mocha": "5.2.7", + "@types/sinon": "7.5.1", + "@types/sinon-chai": "3.2.3", + "@types/sizzle": "2.3.2", + "arch": "2.1.1", + "bluebird": "3.7.2", + "cachedir": "2.3.0", + "chalk": "2.4.2", + "check-more-types": "2.24.0", + "cli-table3": "0.5.1", + "commander": "4.1.0", + "common-tags": "1.8.0", + "debug": "4.1.1", + "eventemitter2": "4.1.2", + "execa": "1.0.0", + "executable": "4.1.1", + "extract-zip": "1.7.0", + "fs-extra": "8.1.0", + "getos": "3.1.4", + "is-ci": "2.0.0", + "is-installed-globally": "0.1.0", + "lazy-ass": "1.6.0", + "listr": "0.14.3", + "lodash": "4.17.15", + "log-symbols": "3.0.0", + "minimist": "1.2.5", + "moment": "2.24.0", + "ospath": "1.2.2", + "pretty-bytes": "5.3.0", + "ramda": "0.26.1", + "request-progress": "3.0.0", + "supports-color": "7.1.0", + "tmp": "0.1.0", + "untildify": "4.0.0", + "url": "0.11.0", + "yauzl": "2.10.0" + }, + "dependencies": { + "commander": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.0.tgz", + "integrity": "sha512-NIQrwvv9V39FHgGFm36+U9SMQzbiHvU79k+iADraJTpmrFFfx7Ds0IvDoAdZsDrknlkRk14OYoWXb57uTh7/sw==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "supports-color": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "tmp": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.1.0.tgz", + "integrity": "sha512-J7Z2K08jbGcdA1kkQpJSqLF6T0tdQqpR2pnSUXsIchbPdTI9v3e85cLW0d6WDhwuAleOV71j2xWs8qMPfK7nKw==", + "dev": true, + "requires": { + "rimraf": "^2.6.3" + } + } + } + }, "d": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", @@ -4276,6 +4720,12 @@ } } }, + "date-fns": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz", + "integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==", + "dev": true + }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", @@ -4703,6 +5153,12 @@ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.340.tgz", "integrity": "sha512-hRFBAglhcj5iVYH+o8QU0+XId1WGoc0VGowJB1cuJAt3exHGrivZvWeAO5BRgBZqwZtwxjm8a5MQeGoT/Su3ww==" }, + "elegant-spinner": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-1.0.1.tgz", + "integrity": "sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4=", + "dev": true + }, "elliptic": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz", @@ -5378,6 +5834,12 @@ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" }, + "eventemitter2": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-4.1.2.tgz", + "integrity": "sha1-DhqEd6+CGm7zmVsxG/dMI6UkfxU=", + "dev": true + }, "eventemitter3": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.0.tgz", @@ -5432,6 +5894,23 @@ "clone-regexp": "^2.1.0" } }, + "executable": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz", + "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==", + "dev": true, + "requires": { + "pify": "^2.2.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, "exenv": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz", @@ -5442,6 +5921,12 @@ "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=" }, + "exit-hook": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", + "integrity": "sha1-8FyiM7SMBdVP/wd2XfhQfpXAL/g=", + "dev": true + }, "expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", @@ -5675,6 +6160,50 @@ } } }, + "extract-zip": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz", + "integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==", + "dev": true, + "requires": { + "concat-stream": "^1.6.2", + "debug": "^2.6.9", + "mkdirp": "^0.5.4", + "yauzl": "^2.10.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", @@ -5790,6 +6319,15 @@ } } }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", + "dev": true, + "requires": { + "pend": "~1.2.0" + } + }, "figgy-pudding": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", @@ -6187,6 +6725,23 @@ "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" }, + "getos": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/getos/-/getos-3.1.4.tgz", + "integrity": "sha512-UORPzguEB/7UG5hqiZai8f0vQ7hzynMQyJLxStoQ8dPGAcmgsfXOPA4iE/fGtweHYkK+z4zc9V0g+CIFRf5HYw==", + "dev": true, + "requires": { + "async": "^3.1.0" + }, + "dependencies": { + "async": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.0.tgz", + "integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==", + "dev": true + } + } + }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -6221,6 +6776,15 @@ "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz", "integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=" }, + "global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", + "dev": true, + "requires": { + "ini": "^1.3.4" + } + }, "global-modules": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", @@ -7024,6 +7588,27 @@ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==" }, + "is-installed-globally": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", + "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", + "dev": true, + "requires": { + "global-dirs": "^0.1.0", + "is-path-inside": "^1.0.0" + }, + "dependencies": { + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "dev": true, + "requires": { + "path-is-inside": "^1.0.1" + } + } + } + }, "is-number": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", @@ -7037,6 +7622,15 @@ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=" }, + "is-observable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz", + "integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==", + "dev": true, + "requires": { + "symbol-observable": "^1.1.0" + } + }, "is-path-cwd": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", @@ -8506,6 +9100,12 @@ "webpack-sources": "^1.1.0" } }, + "lazy-ass": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", + "integrity": "sha1-eZllXoZGwX8In90YfRUNMyTVRRM=", + "dev": true + }, "lazy-cache": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", @@ -8551,6 +9151,177 @@ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" }, + "listr": { + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/listr/-/listr-0.14.3.tgz", + "integrity": "sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA==", + "dev": true, + "requires": { + "@samverschueren/stream-to-observable": "^0.3.0", + "is-observable": "^1.1.0", + "is-promise": "^2.1.0", + "is-stream": "^1.1.0", + "listr-silent-renderer": "^1.1.1", + "listr-update-renderer": "^0.5.0", + "listr-verbose-renderer": "^0.5.0", + "p-map": "^2.0.0", + "rxjs": "^6.3.3" + }, + "dependencies": { + "p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true + } + } + }, + "listr-silent-renderer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz", + "integrity": "sha1-kktaN1cVN3C/Go4/v3S4u/P5JC4=", + "dev": true + }, + "listr-update-renderer": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/listr-update-renderer/-/listr-update-renderer-0.5.0.tgz", + "integrity": "sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA==", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "cli-truncate": "^0.2.1", + "elegant-spinner": "^1.0.1", + "figures": "^1.7.0", + "indent-string": "^3.0.0", + "log-symbols": "^1.0.2", + "log-update": "^2.3.0", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "log-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", + "integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=", + "dev": true, + "requires": { + "chalk": "^1.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "listr-verbose-renderer": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/listr-verbose-renderer/-/listr-verbose-renderer-0.5.0.tgz", + "integrity": "sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "cli-cursor": "^2.1.0", + "date-fns": "^1.27.2", + "figures": "^2.0.0" + }, + "dependencies": { + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "dev": true, + "requires": { + "restore-cursor": "^2.0.0" + } + }, + "figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + } + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "dev": true, + "requires": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + } + } + } + }, "load-json-file": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", @@ -8672,6 +9443,12 @@ "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=" }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=", + "dev": true + }, "lodash.sortby": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", @@ -8707,6 +9484,100 @@ "chalk": "^2.4.2" } }, + "log-update": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-2.3.0.tgz", + "integrity": "sha1-iDKP19HOeTiykoN0bwsbwSayRwg=", + "dev": true, + "requires": { + "ansi-escapes": "^3.0.0", + "cli-cursor": "^2.0.0", + "wrap-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "dev": true + }, + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "dev": true, + "requires": { + "restore-cursor": "^2.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + } + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "dev": true, + "requires": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "wrap-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-3.0.1.tgz", + "integrity": "sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo=", + "dev": true, + "requires": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0" + } + } + } + }, "loglevel": { "version": "1.6.7", "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.7.tgz", @@ -9270,6 +10141,12 @@ } } }, + "moment": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", + "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==", + "dev": true + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", @@ -9825,6 +10702,12 @@ "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" }, + "ospath": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz", + "integrity": "sha1-EnZjl3Sj+O8lcvf+QoDg6kVQwHs=", + "dev": true + }, "p-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", @@ -10072,6 +10955,12 @@ "sha.js": "^2.4.8" } }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", + "dev": true + }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -11436,6 +12325,12 @@ "resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.2.tgz", "integrity": "sha512-VhlMZmGy6A6hrkJWHLNTGl5gtgMUm+xfGza6wbwnE914yeQ5Ybm18vgM734RZhMgfw4tacUrWseGZlpUrrakEQ==" }, + "ramda": { + "version": "0.26.1", + "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.26.1.tgz", + "integrity": "sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ==", + "dev": true + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -12433,6 +13328,15 @@ "uuid": "^3.3.2" } }, + "request-progress": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz", + "integrity": "sha1-TKdUCBx/7GP1BeT6qCWqBs1mnb4=", + "dev": true, + "requires": { + "throttleit": "^1.0.0" + } + }, "request-promise-core": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.3.tgz", @@ -14201,6 +15105,12 @@ "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=" }, + "throttleit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz", + "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=", + "dev": true + }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -14638,6 +15548,12 @@ } } }, + "untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true + }, "upath": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", @@ -16933,6 +17849,16 @@ "camelcase": "^5.0.0", "decamelize": "^1.2.0" } + }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", + "dev": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } } } } diff --git a/package.json b/package.json index 99c4c03..8900358 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "redux": "^4.0.5", "semantic-ui-css": "^2.4.1", "semantic-ui-react": "^0.88.2", - "stylelint": "^13.0.0" + "stylelint": "^13.0.0", + "whatwg-fetch": "^3.0.0" }, "scripts": { "start": "react-scripts start", @@ -32,7 +33,8 @@ "eject": "react-scripts eject", "eslint": "./node_modules/.bin/eslint './src/**/*.js'", "prettier": "./node_modules/.bin/prettier './src/**/*.js'", - "stylelint": "./node_modules/.bin/stylelint './src/**/*.css'" + "stylelint": "./node_modules/.bin/stylelint './src/**/*.css'", + "cypress:open": "cypress open" }, "browserslist": { "production": [ @@ -53,6 +55,7 @@ "bracketSpacing": false }, "devDependencies": { + "cypress": "^4.5.0", "eslint": "^6.8.0", "eslint-config-airbnb": "^18.0.1", "eslint-plugin-import": "^2.20.0", diff --git a/src/index.js b/src/index.js index 701595d..39f0298 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,7 @@ import store from './store'; import ReduxApp from './components/ReduxApp'; import 'semantic-ui-css/semantic.min.css'; import 'react-virtualized/styles.css'; +import 'whatwg-fetch'; import './index.css'; ReactDOM.render( From db26ea936b6df4b078a72d5040e58dcbd7b4a769 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 14:52:16 -0500 Subject: [PATCH 02/33] :white_check_mark: Adding test for clicking on a specific resource --- cypress/fixtures/resources.json | 2 +- cypress/integration/homepage.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cypress/fixtures/resources.json b/cypress/fixtures/resources.json index a3ed311..10926e4 100644 --- a/cypress/fixtures/resources.json +++ b/cypress/fixtures/resources.json @@ -1972,7 +1972,7 @@ "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697625", "resource": { "resourceType": "StructureDefinition", - "id": "697625", + "id": "TestEncounter", "meta": { "versionId": "1", "lastUpdated": "2020-03-23T03:16:31.994+00:00", diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index 0b4083b..ac7c781 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -127,4 +127,11 @@ describe('Homepage', () => { .children('div') .should('have.class', 'sortable-table'); }); + + it('selects a resource', () => { + cy.get('.ui.card') + .contains('TestEncounter') + .click(); + cy.url().should('eq', 'http://localhost:3000/resources/TestEncounter'); + }); }); From 8f4f8ead3fcfd0013e50a3324727400fc00d51ca Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 15:15:39 -0500 Subject: [PATCH 03/33] :white_check_mark: Redoing test resources --- cypress/fixtures/resources.json | 5159 +------------------------------ cypress/integration/homepage.js | 4 +- 2 files changed, 105 insertions(+), 5058 deletions(-) diff --git a/cypress/fixtures/resources.json b/cypress/fixtures/resources.json index 10926e4..aa4fb66 100644 --- a/cypress/fixtures/resources.json +++ b/cypress/fixtures/resources.json @@ -5,7 +5,7 @@ "lastUpdated": "2020-05-13T18:53:40.532+00:00" }, "type": "searchset", - "total": 123, + "total": 8, "link": [ { "relation": "self", @@ -14,19 +14,19 @@ ], "entry": [ { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/1", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestPatient", "resource": { "resourceType": "StructureDefinition", - "id": "1", + "id": "TestPatient", "meta": { "versionId": "1", "lastUpdated": "2019-09-19T09:05:12.803+00:00", "source": "#5ac66523eb8d3133" }, - "url": "http://pms-fhir.org/fhir/StructureDefinition/pmsCitizenship", - "name": "PmsCitizenship", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestPatient", + "name": "TestPatient", "status": "draft", - "description": "Structure of patient citizenship", + "description": "TestPatient", "fhirVersion": "4.0.0", "kind": "complex-type", "abstract": false, @@ -34,5155 +34,202 @@ { "type": "element", "expression": "Patient" - }, - { - "type": "element", - "expression": "Composition" } ], - "type": "Extension", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", - "derivation": "constraint", + "type": "Patient", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient", "snapshot": { - "element": [ - { - "id": "Extension", - "path": "Extension", - "short": "Optional Extensions Element", - "definition": "Optional Extension Element - found in all resources.", - "min": 0, - "max": "1", - "base": { - "path": "Extension", - "min": 0, - "max": "*" - }, - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.id", - "path": "Extension.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Extension.extension", - "path": "Extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality", - "path": "Extension.extension", - "sliceName": "nationality", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "1", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality.id", - "path": "Extension.extension.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Extension.extension:nationality.extension", - "path": "Extension.extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality.url", - "path": "Extension.extension.url", - "representation": ["xmlAttr"], - "short": "identifies the meaning of the extension", - "definition": "Source of the definition for the extension code - a logical name or a URL.", - "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", - "min": 1, - "max": "1", - "base": { - "path": "Extension.url", - "min": 1, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/regex", - "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false, - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 0, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "base64Binary" - }, - { - "code": "boolean" - }, - { - "code": "canonical" - }, - { - "code": "code" - }, - { - "code": "date" - }, - { - "code": "dateTime" - }, - { - "code": "decimal" - }, - { - "code": "id" - }, - { - "code": "instant" - }, - { - "code": "integer" - }, - { - "code": "markdown" - }, - { - "code": "oid" - }, - { - "code": "positiveInt" - }, - { - "code": "string" - }, - { - "code": "time" - }, - { - "code": "unsignedInt" - }, - { - "code": "uri" - }, - { - "code": "url" - }, - { - "code": "uuid" - }, - { - "code": "Address" - }, - { - "code": "Age" - }, - { - "code": "Annotation" - }, - { - "code": "Attachment" - }, - { - "code": "CodeableConcept" - }, - { - "code": "Coding" - }, - { - "code": "ContactPoint" - }, - { - "code": "Count" - }, - { - "code": "Distance" - }, - { - "code": "Duration" - }, - { - "code": "HumanName" - }, - { - "code": "Identifier" - }, - { - "code": "Money" - }, - { - "code": "Period" - }, - { - "code": "Quantity" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "Reference" - }, - { - "code": "SampledData" - }, - { - "code": "Signature" - }, - { - "code": "Timing" - }, - { - "code": "ContactDetail" - }, - { - "code": "Contributor" - }, - { - "code": "DataRequirement" - }, - { - "code": "Expression" - }, - { - "code": "ParameterDefinition" - }, - { - "code": "RelatedArtifact" - }, - { - "code": "TriggerDefinition" - }, - { - "code": "UsageContext" - }, - { - "code": "Dosage" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 1, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "string" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType", - "path": "Extension.extension", - "sliceName": "documentType", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "1", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType.id", - "path": "Extension.extension.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Extension.extension:documentType.extension", - "path": "Extension.extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType.url", - "path": "Extension.extension.url", - "representation": ["xmlAttr"], - "short": "identifies the meaning of the extension", - "definition": "Source of the definition for the extension code - a logical name or a URL.", - "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", - "min": 1, - "max": "1", - "base": { - "path": "Extension.url", - "min": 1, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/regex", - "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false, - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 0, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "base64Binary" - }, - { - "code": "boolean" - }, - { - "code": "canonical" - }, - { - "code": "code" - }, - { - "code": "date" - }, - { - "code": "dateTime" - }, - { - "code": "decimal" - }, - { - "code": "id" - }, - { - "code": "instant" - }, - { - "code": "integer" - }, - { - "code": "markdown" - }, - { - "code": "oid" - }, - { - "code": "positiveInt" - }, - { - "code": "string" - }, - { - "code": "time" - }, - { - "code": "unsignedInt" - }, - { - "code": "uri" - }, - { - "code": "url" - }, - { - "code": "uuid" - }, - { - "code": "Address" - }, - { - "code": "Age" - }, - { - "code": "Annotation" - }, - { - "code": "Attachment" - }, - { - "code": "CodeableConcept" - }, - { - "code": "Coding" - }, - { - "code": "ContactPoint" - }, - { - "code": "Count" - }, - { - "code": "Distance" - }, - { - "code": "Duration" - }, - { - "code": "HumanName" - }, - { - "code": "Identifier" - }, - { - "code": "Money" - }, - { - "code": "Period" - }, - { - "code": "Quantity" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "Reference" - }, - { - "code": "SampledData" - }, - { - "code": "Signature" - }, - { - "code": "Timing" - }, - { - "code": "ContactDetail" - }, - { - "code": "Contributor" - }, - { - "code": "DataRequirement" - }, - { - "code": "Expression" - }, - { - "code": "ParameterDefinition" - }, - { - "code": "RelatedArtifact" - }, - { - "code": "TriggerDefinition" - }, - { - "code": "UsageContext" - }, - { - "code": "Dosage" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 1, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "string" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber", - "path": "Extension.extension", - "sliceName": "documentNumber", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "1", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber.id", - "path": "Extension.extension.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Extension.extension:documentNumber.extension", - "path": "Extension.extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber.url", - "path": "Extension.extension.url", - "representation": ["xmlAttr"], - "short": "identifies the meaning of the extension", - "definition": "Source of the definition for the extension code - a logical name or a URL.", - "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", - "min": 1, - "max": "1", - "base": { - "path": "Extension.url", - "min": 1, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/regex", - "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false, - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 0, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "base64Binary" - }, - { - "code": "boolean" - }, - { - "code": "canonical" - }, - { - "code": "code" - }, - { - "code": "date" - }, - { - "code": "dateTime" - }, - { - "code": "decimal" - }, - { - "code": "id" - }, - { - "code": "instant" - }, - { - "code": "integer" - }, - { - "code": "markdown" - }, - { - "code": "oid" - }, - { - "code": "positiveInt" - }, - { - "code": "string" - }, - { - "code": "time" - }, - { - "code": "unsignedInt" - }, - { - "code": "uri" - }, - { - "code": "url" - }, - { - "code": "uuid" - }, - { - "code": "Address" - }, - { - "code": "Age" - }, - { - "code": "Annotation" - }, - { - "code": "Attachment" - }, - { - "code": "CodeableConcept" - }, - { - "code": "Coding" - }, - { - "code": "ContactPoint" - }, - { - "code": "Count" - }, - { - "code": "Distance" - }, - { - "code": "Duration" - }, - { - "code": "HumanName" - }, - { - "code": "Identifier" - }, - { - "code": "Money" - }, - { - "code": "Period" - }, - { - "code": "Quantity" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "Reference" - }, - { - "code": "SampledData" - }, - { - "code": "Signature" - }, - { - "code": "Timing" - }, - { - "code": "ContactDetail" - }, - { - "code": "Contributor" - }, - { - "code": "DataRequirement" - }, - { - "code": "Expression" - }, - { - "code": "ParameterDefinition" - }, - { - "code": "RelatedArtifact" - }, - { - "code": "TriggerDefinition" - }, - { - "code": "UsageContext" - }, - { - "code": "Dosage" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 1, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "string" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.url", - "path": "Extension.url", - "representation": ["xmlAttr"], - "short": "identifies the meaning of the extension", - "definition": "Source of the definition for the extension code - a logical name or a URL.", - "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", - "min": 1, - "max": "1", - "base": { - "path": "Extension.url", - "min": 1, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/regex", - "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.value[x]", - "path": "Extension.value[x]", - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 0, - "max": "0", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "base64Binary" - }, - { - "code": "boolean" - }, - { - "code": "canonical" - }, - { - "code": "code" - }, - { - "code": "date" - }, - { - "code": "dateTime" - }, - { - "code": "decimal" - }, - { - "code": "id" - }, - { - "code": "instant" - }, - { - "code": "integer" - }, - { - "code": "markdown" - }, - { - "code": "oid" - }, - { - "code": "positiveInt" - }, - { - "code": "string" - }, - { - "code": "time" - }, - { - "code": "unsignedInt" - }, - { - "code": "uri" - }, - { - "code": "url" - }, - { - "code": "uuid" - }, - { - "code": "Address" - }, - { - "code": "Age" - }, - { - "code": "Annotation" - }, - { - "code": "Attachment" - }, - { - "code": "CodeableConcept" - }, - { - "code": "Coding" - }, - { - "code": "ContactPoint" - }, - { - "code": "Count" - }, - { - "code": "Distance" - }, - { - "code": "Duration" - }, - { - "code": "HumanName" - }, - { - "code": "Identifier" - }, - { - "code": "Money" - }, - { - "code": "Period" - }, - { - "code": "Quantity" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "Reference" - }, - { - "code": "SampledData" - }, - { - "code": "Signature" - }, - { - "code": "Timing" - }, - { - "code": "ContactDetail" - }, - { - "code": "Contributor" - }, - { - "code": "DataRequirement" - }, - { - "code": "Expression" - }, - { - "code": "ParameterDefinition" - }, - { - "code": "RelatedArtifact" - }, - { - "code": "TriggerDefinition" - }, - { - "code": "UsageContext" - }, - { - "code": "Dosage" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - } - ] - }, - "differential": { - "element": [ - { - "id": "Extension", - "path": "Extension", - "max": "1" - }, - { - "id": "Extension.extension", - "path": "Extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "rules": "open" - } - }, - { - "id": "Extension.extension:nationality", - "path": "Extension.extension", - "sliceName": "nationality", - "max": "1" - }, - { - "id": "Extension.extension:nationality.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false - }, - { - "id": "Extension.extension:nationality.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "min": 1, - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Extension.extension:documentType", - "path": "Extension.extension", - "sliceName": "documentType", - "max": "1" - }, - { - "id": "Extension.extension:documentType.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false - }, - { - "id": "Extension.extension:documentType.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "min": 1, - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Extension.extension:documentNumber", - "path": "Extension.extension", - "sliceName": "documentNumber", - "max": "1" - }, - { - "id": "Extension.extension:documentNumber.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false - }, - { - "id": "Extension.extension:documentNumber.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "min": 1, - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Extension.value[x]", - "path": "Extension.value[x]", - "max": "0" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/619087", - "resource": { - "resourceType": "StructureDefinition", - "id": "619087", - "meta": { - "versionId": "6", - "lastUpdated": "2020-02-10T19:51:23.903+00:00", - "source": "#Y1V9dg0PSNL59Txf" - }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/619087", - "name": "BloodPressure", - "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Observation", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Observation", - "path": "Observation", - "short": "Vérnyomás profil", - "definition": "Vérnyomás profil, bal-, jobb kar, szisztolés, diasztolés" - }, - { - "id": "Observation.identifier.system", - "path": "Observation.identifier.system", - "min": 1 - }, - { - "id": "Observation.identifier.value", - "path": "Observation.identifier.value", - "min": 1 - }, - { - "id": "Observation.code.coding", - "path": "Observation.code.coding", - "max": "1" - }, - { - "id": "Observation.code.coding.code", - "path": "Observation.code.coding.code", - "fixedCode": "85354-9" - }, - { - "id": "Observation.subject", - "path": "Observation.subject", - "min": 1, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Patient" - ] - } - ] - }, - { - "id": "Observation.effective[x]:effectiveDateTime", - "path": "Observation.effectiveDateTime", - "sliceName": "effectiveDateTime", - "short": "Mintevétel ideje", - "min": 1, - "type": [ - { - "code": "dateTime" - } - ] - }, - { - "id": "Observation.value[x]", - "path": "Observation.value[x]", - "max": "0" - }, - { - "id": "Observation.component", - "path": "Observation.component", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "code.coding.code" - } - ], - "rules": "open" - } - }, - { - "id": "Observation.component:Systolic", - "path": "Observation.component", - "sliceName": "Systolic", - "label": "Szisztolés", - "min": 1, - "max": "1" - }, - { - "id": "Observation.component:Systolic.code.coding.system", - "path": "Observation.component.code.coding.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Observation.component:Systolic.code.coding.code", - "path": "Observation.component.code.coding.code", - "fixedCode": "8480-6" - }, - { - "id": "Observation.component:Systolic.value[x]:valueQuantity", - "path": "Observation.component.valueQuantity", - "sliceName": "valueQuantity", - "min": 1, - "type": [ - { - "code": "Quantity" - } - ] - }, - { - "id": "Observation.component:Systolic.value[x]:valueQuantity.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.component.valueQuantity.unit", - "min": 1, - "fixedString": "mm[Hg]" - }, - { - "id": "Observation.component:Systolic.value[x]:valueQuantity.system", - "path": "Observation.component.valueQuantity.system", - "min": 1, - "fixedUri": "http://unitsofmeasure.org" - }, - { - "id": "Observation.component:Diastolic", - "path": "Observation.component", - "sliceName": "Diastolic", - "label": "Diasztolés", - "min": 1, - "max": "1" - }, - { - "id": "Observation.component:Diastolic.code.coding.code", - "path": "Observation.component.code.coding.code", - "fixedCode": "8462-4" - }, - { - "id": "Observation.component:Diastolic.value[x]:valueQuantity", - "path": "Observation.component.valueQuantity", - "sliceName": "valueQuantity", - "min": 1, - "type": [ - { - "code": "Quantity" - } - ] - }, - { - "id": "Observation.component:Diastolic.value[x]:valueQuantity.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.component.valueQuantity.unit", - "min": 1, - "fixedString": "mm[Hg]" - }, - { - "id": "Observation.component:Diastolic.value[x]:valueQuantity.system", - "path": "Observation.component.valueQuantity.system", - "min": 1, - "fixedUri": "http://unitsofmeasure.org" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/structuredefinition", - "resource": { - "resourceType": "StructureDefinition", - "id": "structuredefinition", - "meta": { - "versionId": "1", - "lastUpdated": "2019-09-23T05:56:25.110+00:00", - "source": "#b7904edd144c75d2" - }, - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition", - "name": "StructureDefinitionSleep", - "status": "draft", - "date": "2019-08-21", - "kind": "resource", - "abstract": true - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697625", - "resource": { - "resourceType": "StructureDefinition", - "id": "TestEncounter", - "meta": { - "versionId": "1", - "lastUpdated": "2020-03-23T03:16:31.994+00:00", - "source": "#1aQ03bcu7wC09AvJ" - }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient3", - "name": "TestEncounter", - "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Encounter", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient2", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] + "element": [] } - }, - "search": { - "mode": "match" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697626", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestSpecimen", "resource": { "resourceType": "StructureDefinition", - "id": "697626", + "id": "TestSpecimen", "meta": { "versionId": "1", - "lastUpdated": "2020-03-23T03:16:49.726+00:00", - "source": "#JfS3mOrpkCfkEHZX" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient4", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestSpecimen", "name": "TestSpecimen", "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", + "description": "TestSpecimen", + "fhirVersion": "4.0.0", + "kind": "complex-type", "abstract": false, + "context": [ + { + "type": "element", + "expression": "Specimen" + } + ], "type": "Specimen", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient3", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] - } - }, - "search": { - "mode": "match" + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Specimen" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697623", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestGroup", "resource": { "resourceType": "StructureDefinition", - "id": "697623", + "id": "TestGroup", "meta": { "versionId": "1", - "lastUpdated": "2020-03-23T03:13:14.988+00:00", - "source": "#B7YNDXX9geGPTmHk" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient1", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestGroup", "name": "TestGroup", "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Group", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697624", - "resource": { - "resourceType": "StructureDefinition", - "id": "697624", - "meta": { - "versionId": "1", - "lastUpdated": "2020-03-23T03:14:13.142+00:00", - "source": "#eqBsP5F2whb0EzFA" - }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient2", - "name": "TestCondition", - "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Condition", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient1", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697215", - "resource": { - "resourceType": "StructureDefinition", - "id": "697215", - "meta": { - "versionId": "2", - "lastUpdated": "2020-03-23T03:27:39.407+00:00", - "source": "#XrgHxgeriZdTbdtB" - }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient", - "name": "DemoPatient", - "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Patient", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/Patient", - "derivation": "constraint", - "snapshot": { - "element": [ - { - "id": "Patient", - "path": "Patient", - "short": "Information about an individual or animal receiving health care services", - "definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.", - "alias": ["SubjectOfCare Client Resident"], - "min": 0, - "max": "*", - "base": { - "path": "Patient", - "min": 0, - "max": "*" - }, - "constraint": [ - { - "key": "dom-2", - "severity": "error", - "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", - "expression": "contained.contained.empty()", - "xpath": "not(parent::f:contained and f:contained)", - "source": "DomainResource" - }, - { - "key": "dom-4", - "severity": "error", - "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", - "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", - "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", - "source": "DomainResource" - }, - { - "key": "dom-3", - "severity": "error", - "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", - "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", - "xpath": "not(exists(for $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", - "source": "DomainResource" - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", - "valueBoolean": true - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", - "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." - } - ], - "key": "dom-6", - "severity": "warning", - "human": "A resource should have narrative for robust management", - "expression": "text.div.exists()", - "xpath": "exists(f:text/h:div)", - "source": "DomainResource" - }, - { - "key": "dom-5", - "severity": "error", - "human": "If a resource is contained in another resource, it SHALL NOT have a security label", - "expression": "contained.meta.security.empty()", - "xpath": "not(exists(f:contained/*/f:meta/f:security))", - "source": "DomainResource" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "Entity. Role, or Act" - }, - { - "identity": "rim", - "map": "Patient[classCode=PAT]" - }, - { - "identity": "cda", - "map": "ClinicalDocument.recordTarget.patientRole" - } - ] - }, - { - "id": "Patient.id", - "path": "Patient.id", - "short": "Logical id of this artifact", - "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", - "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", - "min": 0, - "max": "1", - "base": { - "path": "Resource.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "id" - } - ], - "isModifier": false, - "isSummary": true - }, - { - "id": "Patient.implicitRules", - "path": "Patient.implicitRules", - "short": "A set of rules under which this content was created", - "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.", - "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", - "min": 0, - "max": "1", - "base": { - "path": "Resource.implicitRules", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "uri" - } - ], - "isModifier": true, - "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", - "isSummary": true - }, - { - "id": "Patient.language", - "path": "Patient.language", - "short": "Language of the resource content", - "definition": "The base language in which the resource is written.", - "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", - "min": 0, - "max": "1", - "base": { - "path": "Resource.language", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", - "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "Language" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "preferred", - "description": "A human language.", - "valueSet": "http://hl7.org/fhir/ValueSet/languages" - } - }, - { - "id": "Patient.racee", - "path": "Patient.racee", - "short": "Race of the patient", - "definition": "Race", - "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", - "min": 0, - "max": "1", - "base": { - "path": "Resource.racee", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "strength": "preferred", - "description": "A human language.", - "valueSet": "http://hl7.org/fhir/ValueSet/languages" - } - }, - { - "id": "Patient.text", - "path": "Patient.text", - "short": "Text summary of the resource, for human interpretation", - "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.", - "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", - "alias": ["narrative", "html", "xhtml", "display"], - "min": 0, - "max": "1", - "base": { - "path": "DomainResource.text", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Narrative" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "Act.text?" - } - ] - }, - { - "id": "Patient.contained", - "path": "Patient.contained", - "short": "Contained, inline Resources", - "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.", - "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", - "alias": [ - "inline resources", - "anonymous resources", - "contained resources" - ], - "min": 0, - "max": "*", - "base": { - "path": "DomainResource.contained", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Resource" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.extension", - "path": "Patient.extension", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "DomainResource.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.modifierExtension", - "path": "Patient.modifierExtension", - "short": "Extensions that cannot be ignored", - "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).", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "DomainResource.modifierExtension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": true, - "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "short": "An identifier for this patient", - "definition": "An identifier for this patient.", - "requirements": "Patients are almost always assigned specific numerical identifiers.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.identifier", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Identifier" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "w5", - "map": "FiveWs.identifier" - }, - { - "identity": "v2", - "map": "PID-3" - }, - { - "identity": "rim", - "map": "id" - }, - { - "identity": "cda", - "map": ".id" - } - ] - }, - { - "id": "Patient.active", - "path": "Patient.active", - "short": "Whether this patient's record is in active use", - "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.", - "comment": "If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.", - "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.active", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "boolean" - } - ], - "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element", - "isModifier": true, - "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid", - "isSummary": true, - "mapping": [ - { - "identity": "w5", - "map": "FiveWs.status" - }, - { - "identity": "rim", - "map": "statusCode" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.name", - "path": "Patient.name", - "short": "A name associated with the patient", - "definition": "A name associated with the individual.", - "comment": "A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.", - "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.name", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "HumanName" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-5, PID-9" - }, - { - "identity": "rim", - "map": "name" - }, - { - "identity": "cda", - "map": ".patient.name" - } - ] - }, - { - "id": "Patient.telecom", - "path": "Patient.telecom", - "short": "A contact detail for the individual", - "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.", - "comment": "A Patient may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and also to help with identification. The address might not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).", - "requirements": "People have (primary) ways to contact them in some way such as phone, email.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.telecom", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "ContactPoint" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-13, PID-14, PID-40" - }, - { - "identity": "rim", - "map": "telecom" - }, - { - "identity": "cda", - "map": ".telecom" - } - ] - }, - { - "id": "Patient.gender", - "path": "Patient.gender", - "short": "male | female | other | unknown", - "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.", - "comment": "The gender might not match the biological sex as determined by genetics or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than male and female, though the vast majority of systems and contexts only support male and female. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, social, etc.) However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice. Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosomal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error. See the Patient Gender and Sex section for additional information about communicating patient gender and sex.", - "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.gender", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "AdministrativeGender" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "required", - "description": "The gender of a person used for administrative purposes.", - "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0" - }, - "mapping": [ - { - "identity": "v2", - "map": "PID-8" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" - }, - { - "identity": "cda", - "map": ".patient.administrativeGenderCode" - } - ] - }, - { - "id": "Patient.birthDate", - "path": "Patient.birthDate", - "short": "The date of birth for the individual", - "definition": "The date of birth for the individual.", - "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).", - "requirements": "Age of the individual drives many clinical processes.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.birthDate", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "date" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-7" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime" - }, - { - "identity": "cda", - "map": ".patient.birthTime" - }, - { - "identity": "loinc", - "map": "21112-8" - } - ] - }, - { - "id": "Patient.deceased[x]", - "path": "Patient.deceased[x]", - "short": "Indicates if the individual is deceased or not", - "definition": "Indicates if the individual is deceased or not.", - "comment": "If there's no value in the instance, it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.", - "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.deceased[x]", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "boolean" - }, - { - "code": "dateTime" - } - ], - "isModifier": true, - "isModifierReason": "This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.", - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-30 (bool) and PID-29 (datetime)" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.address", - "path": "Patient.address", - "short": "An address for the individual", - "definition": "An address for the individual.", - "comment": "Patient may have multiple addresses with different uses or applicable periods.", - "requirements": "May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.address", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Address" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-11" - }, - { - "identity": "rim", - "map": "addr" - }, - { - "identity": "cda", - "map": ".addr" - } - ] - }, - { - "id": "Patient.maritalStatus", - "path": "Patient.maritalStatus", - "short": "Marital (civil) status of a patient", - "definition": "This field contains a patient's most recent marital (civil) status.", - "requirements": "Most, if not all systems capture it.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.maritalStatus", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "CodeableConcept" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "MaritalStatus" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "extensible", - "description": "The domestic partnership status of a person.", - "valueSet": "http://hl7.org/fhir/ValueSet/marital-status" - }, - "mapping": [ - { - "identity": "v2", - "map": "PID-16" - }, - { - "identity": "rim", - "map": "player[classCode=PSN]/maritalStatusCode" - }, - { - "identity": "cda", - "map": ".patient.maritalStatusCode" - } - ] - }, - { - "id": "Patient.multipleBirth[x]", - "path": "Patient.multipleBirth[x]", - "short": "Whether patient is part of a multiple birth", - "definition": "Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).", - "comment": "Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).", - "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.multipleBirth[x]", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "boolean" - }, - { - "code": "integer" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "PID-24 (bool), PID-25 (integer)" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.photo", - "path": "Patient.photo", - "short": "Image of the patient", - "definition": "Image of the patient.", - "comment": "Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.", - "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.photo", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Attachment" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "OBX-5 - needs a profile" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", - "valueString": "Contact" - } - ], - "path": "Patient.contact", - "short": "A contact party (e.g. guardian, partner, friend) for the patient", - "definition": "A contact party (e.g. guardian, partner, friend) for the patient.", - "comment": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.", - "requirements": "Need to track people you can contact about the patient.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.contact", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "BackboneElement" - } - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div", - "source": "Element" - }, - { - "key": "pat-1", - "severity": "error", - "human": "SHALL at least contain a contact's details or a reference to an organization", - "expression": "name.exists() or telecom.exists() or address.exists() or organization.exists()", - "xpath": "exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.id", - "path": "Patient.contact.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.extension", - "path": "Patient.contact.extension", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.modifierExtension", - "path": "Patient.contact.modifierExtension", - "short": "Extensions that cannot be ignored even if unrecognized", - "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).", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", - "alias": ["extensions", "user content", "modifiers"], - "min": 0, - "max": "*", - "base": { - "path": "BackboneElement.modifierExtension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": true, - "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.contact.relationship", - "path": "Patient.contact.relationship", - "short": "The kind of relationship", - "definition": "The nature of the relationship between the patient and the contact person.", - "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.contact.relationship", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "CodeableConcept" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ContactRelationship" - } - ], - "strength": "extensible", - "description": "The nature of the relationship between a patient and a contact person for that patient.", - "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship" - }, - "mapping": [ - { - "identity": "v2", - "map": "NK1-7, NK1-3" - }, - { - "identity": "rim", - "map": "code" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.name", - "path": "Patient.contact.name", - "short": "A name associated with the contact person", - "definition": "A name associated with the contact person.", - "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.name", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "HumanName" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "NK1-2" - }, - { - "identity": "rim", - "map": "name" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.telecom", - "path": "Patient.contact.telecom", - "short": "A contact detail for the person", - "definition": "A contact detail for the person, e.g. a telephone number or an email address.", - "comment": "Contact may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.", - "requirements": "People have (primary) ways to contact them in some way such as phone, email.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.contact.telecom", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "ContactPoint" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "NK1-5, NK1-6, NK1-40" - }, - { - "identity": "rim", - "map": "telecom" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.address", - "path": "Patient.contact.address", - "short": "Address for the contact person", - "definition": "Address for the contact person.", - "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.address", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Address" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "NK1-4" - }, - { - "identity": "rim", - "map": "addr" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.gender", - "path": "Patient.contact.gender", - "short": "male | female | other | unknown", - "definition": "Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.", - "requirements": "Needed to address the person correctly.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.gender", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "AdministrativeGender" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "required", - "description": "The gender of a person used for administrative purposes.", - "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0" - }, - "mapping": [ - { - "identity": "v2", - "map": "NK1-15" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.organization", - "path": "Patient.contact.organization", - "short": "Organization that is associated with the contact", - "definition": "Organization on behalf of which the contact is acting or for which the contact is working.", - "requirements": "For guardians or business related contacts, the organization is relevant.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.organization", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Organization" - ] - } - ], - "condition": ["pat-1"], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41" - }, - { - "identity": "rim", - "map": "scoper" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.period", - "path": "Patient.contact.period", - "short": "The period during which this contact person or organization is valid to be contacted relating to this patient", - "definition": "The period during which this contact person or organization is valid to be contacted relating to this patient.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.period", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Period" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "effectiveTime" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.communication", - "path": "Patient.communication", - "short": "A language which may be used to communicate with the patient about his or her health", - "definition": "A language which may be used to communicate with the patient about his or her health.", - "comment": "If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations. For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.", - "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.communication", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "BackboneElement" - } - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div", - "source": "Element" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "LanguageCommunication" - }, - { - "identity": "cda", - "map": "patient.languageCommunication" - } - ] - }, - { - "id": "Patient.communication.id", - "path": "Patient.communication.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.communication.extension", - "path": "Patient.communication.extension", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.communication.modifierExtension", - "path": "Patient.communication.modifierExtension", - "short": "Extensions that cannot be ignored even if unrecognized", - "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).", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", - "alias": ["extensions", "user content", "modifiers"], - "min": 0, - "max": "*", - "base": { - "path": "BackboneElement.modifierExtension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": true, - "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.communication.language", - "path": "Patient.communication.language", - "short": "The language which can be used to communicate with the patient about his or her health", - "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.", - "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.", - "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.", - "min": 1, - "max": "1", - "base": { - "path": "Patient.communication.language", - "min": 1, - "max": "1" - }, - "type": [ - { - "code": "CodeableConcept" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", - "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "Language" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "preferred", - "description": "A human language.", - "valueSet": "http://hl7.org/fhir/ValueSet/languages" - }, - "mapping": [ - { - "identity": "v2", - "map": "PID-15, LAN-2" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" - }, - { - "identity": "cda", - "map": ".languageCode" - } - ] - }, - { - "id": "Patient.communication.preferred", - "path": "Patient.communication.preferred", - "short": "Language preference indicator", - "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).", - "comment": "This language is specifically identified for communicating healthcare information.", - "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.communication.preferred", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "boolean" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "PID-15" - }, - { - "identity": "rim", - "map": "preferenceInd" - }, - { - "identity": "cda", - "map": ".preferenceInd" - } - ] - }, - { - "id": "Patient.generalPractitioner", - "path": "Patient.generalPractitioner", - "short": "Patient's nominated primary care provider", - "definition": "Patient's nominated care provider.", - "comment": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles. It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.", - "alias": ["careProvider"], - "min": 0, - "max": "*", - "base": { - "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" - ] - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "PD1-4" - }, - { - "identity": "rim", - "map": "subjectOf.CareEvent.performer.AssignedEntity" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.managingOrganization", - "path": "Patient.managingOrganization", - "short": "Organization that is the custodian of the patient record", - "definition": "Organization that is the custodian of the patient record.", - "comment": "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).", - "requirements": "Need to know who recognizes this patient record, manages and updates it.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.managingOrganization", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Organization" - ] - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "scoper" - }, - { - "identity": "cda", - "map": ".providerOrganization" - } - ] - }, - { - "id": "Patient.link", - "path": "Patient.link", - "short": "Link to another patient resource that concerns the same actual person", - "definition": "Link to another patient resource that concerns the same actual patient.", - "comment": "There is no assumption that linked patient records have mutual links.", - "requirements": "There are multiple use cases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and \n* Distribution of patient information across multiple servers.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.link", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "BackboneElement" - } - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div", - "source": "Element" - } - ], - "isModifier": true, - "isModifierReason": "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'", - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "outboundLink" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.link.id", - "path": "Patient.link.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.link.extension", - "path": "Patient.link.extension", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.link.modifierExtension", - "path": "Patient.link.modifierExtension", - "short": "Extensions that cannot be ignored even if unrecognized", - "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).", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", - "alias": ["extensions", "user content", "modifiers"], - "min": 0, - "max": "*", - "base": { - "path": "BackboneElement.modifierExtension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": true, - "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.link.other", - "path": "Patient.link.other", - "short": "The other patient or related person resource that the link refers to", - "definition": "The other patient resource that the link refers to.", - "comment": "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.", - "min": 1, - "max": "1", - "base": { - "path": "Patient.link.other", - "min": 1, - "max": "1" - }, - "type": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy", - "valueBoolean": false - } - ], - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Patient", - "http://hl7.org/fhir/StructureDefinition/RelatedPerson" - ] - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-3, MRG-1" - }, - { - "identity": "rim", - "map": "id" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.link.type", - "path": "Patient.link.type", - "short": "replaced-by | replaces | refer | seealso", - "definition": "The type of link between this patient resource and another patient resource.", - "min": 1, - "max": "1", - "base": { - "path": "Patient.link.type", - "min": 1, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "LinkType" - } - ], - "strength": "required", - "description": "The type of link between this patient resource and another patient resource.", - "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.0" - }, - "mapping": [ - { - "identity": "rim", - "map": "typeCode" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - } - ] - }, - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25232", - "resource": { - "resourceType": "StructureDefinition", - "id": "25232", - "meta": { - "versionId": "1", - "lastUpdated": "2019-09-24T07:17:35.634+00:00", - "source": "#ef600769079a2dd1" - }, - "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-execute-simple-feasibility", - "version": "0.1.0", - "name": "TaskExecuteSimpleFeasibility", - "status": "active", - "date": "2019-05-21", + "description": "TestGroup", "fhirVersion": "4.0.0", - "kind": "resource", - "abstract": false, - "type": "Task", - "baseDefinition": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.instantiatesUri", - "path": "Task.instantiatesUri", - "fixedUri": "http://highmed.org/bpe/Process/executeSimpleFeasibility/1.0.0" - }, - { - "id": "Task.input", - "path": "Task.input", - "min": 4 - }, - { - "id": "Task.input:message-name", - "path": "Task.input", - "sliceName": "message-name" - }, - { - "id": "Task.input:message-name.value[x]", - "path": "Task.input.value[x]", - "fixedString": "executeSimpleFeasibilityMessage" - }, - { - "id": "Task.input:research-study", - "path": "Task.input", - "sliceName": "research-study", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:research-study.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:research-study.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/task-input" - }, - { - "id": "Task.input:research-study.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "research-study-reference" - }, - { - "id": "Task.input:research-study.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://highmed.org/fhir/StructureDefinition/highmed-research-study" - ] - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25233", - "resource": { - "resourceType": "StructureDefinition", - "id": "25233", - "meta": { - "versionId": "1", - "lastUpdated": "2019-09-24T07:18:30.536+00:00", - "source": "#3e8a9cc9745882e5" - }, - "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", - "version": "0.1.0", - "name": "TaskBase", - "status": "active", - "date": "2019-05-21", - "fhirVersion": "4.0.0", - "kind": "resource", - "abstract": true, - "type": "Task", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.instantiatesUri", - "path": "Task.instantiatesUri", - "min": 1 - }, - { - "id": "Task.intent", - "path": "Task.intent", - "fixedCode": "order" - }, - { - "id": "Task.authoredOn", - "path": "Task.authoredOn", - "min": 1 - }, - { - "id": "Task.requester", - "path": "Task.requester", - "min": 1, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://highmed.org/fhir/StructureDefinition/highmed-organization" - ] - } - ] - }, - { - "id": "Task.restriction", - "path": "Task.restriction", - "min": 1 - }, - { - "id": "Task.restriction.recipient", - "path": "Task.restriction.recipient", - "min": 1, - "max": "1", - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://highmed.org/fhir/StructureDefinition/highmed-organization" - ] - } - ] - }, - { - "id": "Task.input", - "path": "Task.input", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "type.coding.code" - } - ], - "rules": "openAtEnd" - }, - "min": 3 - }, - { - "id": "Task.input:message-name", - "path": "Task.input", - "sliceName": "message-name", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:message-name.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:message-name.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:message-name.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "message-name" - }, - { - "id": "Task.input:message-name.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Task.input:business-key", - "path": "Task.input", - "sliceName": "business-key", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:business-key.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:business-key.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:business-key.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "business-key" - }, - { - "id": "Task.input:business-key.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Task.input:correlation-key", - "path": "Task.input", - "sliceName": "correlation-key", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:correlation-key.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:correlation-key.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:correlation-key.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "correlation-key" - }, - { - "id": "Task.input:correlation-key.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Task.output", - "path": "Task.output", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "type.coding.code" - } - ], - "rules": "open" - } - }, - { - "id": "Task.output:error", - "path": "Task.output", - "sliceName": "error" - }, - { - "id": "Task.output:error.type.coding", - "path": "Task.output.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.output:error.type.coding.system", - "path": "Task.output.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.output:error.type.coding.code", - "path": "Task.output.type.coding.code", - "fixedCode": "error" - }, - { - "id": "Task.output:error.value[x]", - "path": "Task.output.value[x]", - "type": [ - { - "code": "string" - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25234", - "resource": { - "resourceType": "StructureDefinition", - "id": "25234", - "meta": { - "versionId": "1", - "lastUpdated": "2019-09-24T07:19:08.993+00:00", - "source": "#20a371061d227b3c" - }, - "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-execute-simple-feasibility", - "version": "0.1.0", - "name": "TaskExecuteSimpleFeasibility", - "status": "active", - "date": "2019-05-21", - "fhirVersion": "4.0.0", - "kind": "resource", + "kind": "complex-type", "abstract": false, - "type": "Task", - "baseDefinition": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.instantiatesUri", - "path": "Task.instantiatesUri", - "fixedUri": "http://highmed.org/bpe/Process/executeSimpleFeasibility/1.0.0" - }, - { - "id": "Task.input", - "path": "Task.input", - "min": 4 - }, - { - "id": "Task.input:message-name", - "path": "Task.input", - "sliceName": "message-name" - }, - { - "id": "Task.input:message-name.value[x]", - "path": "Task.input.value[x]", - "fixedString": "executeSimpleFeasibilityMessage" - }, - { - "id": "Task.input:research-study", - "path": "Task.input", - "sliceName": "research-study", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:research-study.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:research-study.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/task-input" - }, - { - "id": "Task.input:research-study.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "research-study-reference" - }, - { - "id": "Task.input:research-study.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://highmed.org/fhir/StructureDefinition/highmed-research-study" - ] - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697727", - "resource": { - "resourceType": "StructureDefinition", - "id": "697727", - "meta": { - "versionId": "1", - "lastUpdated": "2020-03-23T12:26:47.330+00:00", - "source": "#rKbUCnzvdd9MCZfP" - }, - "url": "https://www.ehealth.fgov.be/standards/fhir/StructureDefinition/be-eagreementmessageheader", - "name": "EAgreementMessageHeader", - "status": "draft", - "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Group" } ], - "kind": "resource", - "abstract": false, - "type": "MessageHeader", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MessageHeader", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "MessageHeader.event[x]", - "path": "MessageHeader.event[x]", - "type": [ - { - "code": "Coding" - } - ] - }, - { - "id": "MessageHeader.event[x].system", - "path": "MessageHeader.event[x].system", - "fixedUri": "https://www.mycarenet.be/fhir/CodeSystem/message-events" - } - ] - } - }, - "search": { - "mode": "match" + "type": "Group", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Group" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38344", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestCondition", "resource": { "resourceType": "StructureDefinition", - "id": "38344", + "id": "TestCondition", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:01:41.040+00:00", - "source": "#ce2ebf25197b55bb" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_List", - "name": "DL_List", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestCondition", + "name": "TestCondition", "status": "draft", + "description": "TestCondition", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, + "kind": "complex-type", + "abstract": false, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Condition" } ], - "kind": "resource", - "abstract": false, - "type": "List", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List", - "derivation": "constraint" - }, - "search": { - "mode": "match" + "type": "Condition", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38345", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestObservation", "resource": { "resourceType": "StructureDefinition", - "id": "38345", + "id": "TestObservation", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:01:58.701+00:00", - "source": "#98578a5737fafb37" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_Organization", - "name": "DL_Organization", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestObservation", + "name": "TestObservation", "status": "draft", + "description": "TestObservation", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "servd", - "uri": "http://www.omg.org/spec/ServD/1.0/", - "name": "ServD" - }, + "kind": "complex-type", + "abstract": false, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Observation" } ], - "kind": "resource", - "abstract": false, - "type": "Organization", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Organization.name", - "path": "Organization.name", - "min": 1 - }, - { - "id": "Organization.contact", - "path": "Organization.contact", - "min": 1 - } - ] - } - }, - "search": { - "mode": "match" + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38346", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestPractitioner", "resource": { "resourceType": "StructureDefinition", - "id": "38346", + "id": "TestPractitioner", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:02:18.857+00:00", - "source": "#27217fbed1898bac" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_Practitioner", - "name": "DL_Practitioner", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestPractitioner", + "name": "TestPractitioner", "status": "draft", + "description": "TestPractitioner", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "servd", - "uri": "http://www.omg.org/spec/ServD/1.0/", - "name": "ServD" - }, + "kind": "complex-type", + "abstract": false, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Practitioner" } ], - "kind": "resource", - "abstract": false, "type": "Practitioner", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Practitioner.name", - "path": "Practitioner.name", - "min": 1, - "max": "1" - }, - { - "id": "Practitioner.telecom", - "path": "Practitioner.telecom", - "min": 1, - "max": "1" - }, - { - "id": "Practitioner.telecom.system", - "path": "Practitioner.telecom.system", - "fixedCode": "email" - }, - { - "id": "Practitioner.telecom.value", - "path": "Practitioner.telecom.value", - "min": 1 - } - ] - } - }, - "search": { - "mode": "match" + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38347", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestEncounter", "resource": { "resourceType": "StructureDefinition", - "id": "38347", + "id": "TestEncounter", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:02:33.125+00:00", - "source": "#45d83081a5c76a9a" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_PractitionerRole", - "name": "DL_PractitionerRole", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestEncounter", + "name": "TestEncounter", "status": "draft", + "description": "TestEncounter", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "servd", - "uri": "http://www.omg.org/spec/ServD/1.0/", - "name": "ServD" - }, + "kind": "complex-type", + "abstract": false, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Encounter" } ], - "kind": "resource", - "abstract": false, - "type": "PractitionerRole", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "PractitionerRole.practitioner", - "path": "PractitionerRole.practitioner", - "min": 1 - }, - { - "id": "PractitionerRole.organization", - "path": "PractitionerRole.organization", - "min": 1 - }, - { - "id": "PractitionerRole.code.coding.system", - "path": "PractitionerRole.code.coding.system", - "fixedUri": "http://snomed.info/sct" - }, - { - "id": "PractitionerRole.code.coding.code", - "path": "PractitionerRole.code.coding.code", - "fixedCode": "768816002" - } - ] - } - }, - "search": { - "mode": "match" + "type": "Encounter", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38348", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestTask", "resource": { "resourceType": "StructureDefinition", - "id": "38348", + "id": "TestTask", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:02:48.628+00:00", - "source": "#c7644bb4f9c6b42e" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_ResearchStudy", - "name": "DL_ResearchStudy", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestTask", + "name": "TestTask", "status": "draft", + "description": "TestTask", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "BRIDG5.1", - "uri": "https://bridgmodel.nci.nih.gov", - "name": "BRIDG 5.1 Mapping" - }, - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "clinicaltrials-gov", - "uri": "http://clinicaltrials.gov", - "name": "ClinicalTrials.gov Mapping" - }, - { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" - } - ], - "kind": "resource", + "kind": "complex-type", "abstract": false, - "type": "ResearchStudy", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ResearchStudy", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "ResearchStudy.title", - "path": "ResearchStudy.title", - "min": 1 - }, - { - "id": "ResearchStudy.sponsor", - "path": "ResearchStudy.sponsor", - "min": 1 - }, - { - "id": "ResearchStudy.principalInvestigator", - "path": "ResearchStudy.principalInvestigator", - "min": 1 - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38349", - "resource": { - "resourceType": "StructureDefinition", - "id": "38349", - "meta": { - "versionId": "3", - "lastUpdated": "2019-10-01T00:56:17.847+00:00", - "source": "#a4ba625d6025248c" - }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_Composition", - "name": "DL_Composition", - "status": "draft", - "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "workflow", - "uri": "http://hl7.org/fhir/workflow", - "name": "Workflow Pattern" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "cda", - "uri": "http://hl7.org/v3/cda", - "name": "CDA (R2)" - }, - { - "identity": "fhirdocumentreference", - "uri": "http://hl7.org/fhir/documentreference", - "name": "FHIR DocumentReference" - }, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Task" } ], - "kind": "resource", - "abstract": false, - "type": "Composition", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Composition.section", - "path": "Composition.section", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:title", - "path": "Composition.section", - "sliceName": "title" - }, - { - "id": "Composition.section:information", - "path": "Composition.section", - "sliceName": "information" - }, - { - "id": "Composition.section:information.entry", - "path": "Composition.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:information.entry:Practitioner", - "path": "Composition.section.entry", - "sliceName": "Practitioner", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Practitioner" - ] - } - ] - }, - { - "id": "Composition.section:information.entry:Organization", - "path": "Composition.section.entry", - "sliceName": "Organization", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Organization" - ] - } - ] - }, - { - "id": "Composition.section:information.entry:ResearchStudy", - "path": "Composition.section.entry", - "sliceName": "ResearchStudy", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_ResearchStudy" - ] - } - ] - }, - { - "id": "Composition.section:relianceDetermination", - "path": "Composition.section", - "sliceName": "relianceDetermination" - }, - { - "id": "Composition.section:relianceDetermination.section", - "path": "Composition.section.section", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:relianceDetermination.section:reviewingIRB", - "path": "Composition.section.section", - "sliceName": "reviewingIRB" - }, - { - "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry", - "path": "Composition.section.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry:Organization", - "path": "Composition.section.section.entry", - "sliceName": "Organization", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Organization" - ] - } - ] - }, - { - "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry:Practitioner", - "path": "Composition.section.section.entry", - "sliceName": "Practitioner", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Practitioner" - ] - } - ] - }, - { - "id": "Composition.section:relianceDetermination.section:approvedIRBList", - "path": "Composition.section.section", - "sliceName": "approvedIRBList" - }, - { - "id": "Composition.section:relianceDetermination.section:approvedIRBList.entry", - "path": "Composition.section.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:relianceDetermination.section:approvedIRBList.entry:List", - "path": "Composition.section.section.entry", - "sliceName": "List", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_List" - ] - } - ] - }, - { - "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList", - "path": "Composition.section.section", - "sliceName": "nonApprovedIRBList" - }, - { - "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList.entry", - "path": "Composition.section.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList.entry:List", - "path": "Composition.section.section.entry", - "sliceName": "List", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_List" - ] - } - ] - }, - { - "id": "Composition.section:responsibilities", - "path": "Composition.section", - "sliceName": "responsibilities" - }, - { - "id": "Composition.section:responsibilities.section", - "path": "Composition.section.section", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:responsibilities.section:overallPIResponsibilities", - "path": "Composition.section.section", - "sliceName": "overallPIResponsibilities" - }, - { - "id": "Composition.section:responsibilities.section:siteInvestigatorResponsibilities", - "path": "Composition.section.section", - "sliceName": "siteInvestigatorResponsibilities" - }, - { - "id": "Composition.section:close", - "path": "Composition.section", - "sliceName": "close" - }, - { - "id": "Composition.section:close.entry", - "path": "Composition.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:close.entry:organization", - "path": "Composition.section.entry", - "sliceName": "organization", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Organization" - ] - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38905", - "resource": { - "resourceType": "StructureDefinition", - "id": "38905", - "meta": { - "versionId": "1", - "lastUpdated": "2019-10-01T10:23:46.874+00:00", - "source": "#0cc4be9be56ea7a5" - }, - "url": "http://highmed.org/fhir/StructureDefinition/BaseTask", - "name": "BaseTask", - "status": "draft", - "fhirVersion": "4.0.0", - "kind": "resource", - "abstract": false, "type": "Task", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.input", - "path": "Task.input", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "type.coding.system" - }, - { - "type": "value", - "path": "type.coding.code" - } - ], - "rules": "open" - }, - "min": 1 - }, - { - "id": "Task.input:baseInputSlice", - "path": "Task.input", - "sliceName": "baseInputSlice", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:baseInputSlice.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:baseInputSlice.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "base-input-slice" - }, - { - "id": "Task.input:baseInputSlice.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/39146", - "resource": { - "resourceType": "StructureDefinition", - "id": "39146", - "meta": { - "versionId": "1", - "lastUpdated": "2019-10-01T11:22:00.829+00:00", - "source": "#2416ea9716752386" - }, - "url": "http://highmed.org/fhir/StructureDefinition/ExtendedTask", - "name": "ExtendedTask", - "status": "draft", - "fhirVersion": "4.0.0", - "kind": "resource", - "abstract": false, - "type": "Task", - "baseDefinition": "http://highmed.org/fhir/StructureDefinition/BaseTask", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.input", - "path": "Task.input", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "type.coding.system" - }, - { - "type": "value", - "path": "type.coding.code" - } - ], - "rules": "open" - }, - "min": 2 - }, - { - "id": "Task.input:extendedInputSlice", - "path": "Task.input", - "sliceName": "extendedInputSlice", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:extendedInputSlice.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:extendedInputSlice.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "extended-input-slice" - }, - { - "id": "Task.input:extendedInputSlice.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - } - ] - } - }, - "search": { - "mode": "match" + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task" } } ] diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index ac7c781..983c03c 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -24,7 +24,7 @@ describe('Homepage', () => { it('loads resources', () => { cy.url().should('include', '/resources'); - cy.contains('18 total'); + cy.contains('8 total'); }); it('filters search results on input', () => { @@ -36,7 +36,7 @@ describe('Homepage', () => { it('filters results on search', () => { cy.get('.ui.card').should($x => { - expect($x).to.have.length(18); + expect($x).to.have.length(8); }); cy.get('.prompt').type('Patient'); cy.get('.ui.search>.results') From d09dd4afacc3918a0862201c89f2bca948a3c30d Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 15:40:42 -0500 Subject: [PATCH 04/33] :white_check_mark: Updating test that always passes to be more granular --- cypress/integration/homepage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index 983c03c..c3ea059 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -29,7 +29,7 @@ describe('Homepage', () => { it('filters search results on input', () => { cy.get('.prompt').type('Pa'); - cy.get('.ui.search>.results').should($x => { + cy.get('.ui.search>.results .result').should($x => { expect($x).to.have.length(1); }); }); @@ -39,7 +39,7 @@ describe('Homepage', () => { expect($x).to.have.length(8); }); cy.get('.prompt').type('Patient'); - cy.get('.ui.search>.results') + cy.get('.ui.search>.results .result') .should($x => { expect($x).to.have.length(1); }) From 0325f38e066512acb36346f9dd98574b6bc7b190 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 16:32:51 -0500 Subject: [PATCH 05/33] :white_check_mark: Updating tests to use ENV var --- cypress.json | 4 +++- cypress/integration/homepage.js | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress.json b/cypress.json index 6a81f4e..e08f026 100644 --- a/cypress.json +++ b/cypress.json @@ -1,6 +1,8 @@ { "baseUrl": "http://localhost:3000", - "env": {}, + "env": { + "REACT_APP_FHIR_API": "http://hapi.fhir.org/baseR4/" + }, "video": false, "chromeWebSecurity": false } diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index c3ea059..d40af40 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -6,9 +6,7 @@ describe('Homepage', () => { url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/**', response: 'fixture:resources.json', }).as('getResources'); - cy.visit('/servers'); - cy.contains('hapi').click(); - cy.contains('Launch').click(); + cy.visit('/resources'); cy.wait('@getResources'); }); From a2185683d5a6a5b0f9f62b289b333735bc3b3c7a Mon Sep 17 00:00:00 2001 From: Abby George Date: Mon, 18 May 2020 09:21:04 -0500 Subject: [PATCH 06/33] :bulb: Documentation for running Cypress --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d545a03..c45b57c 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,11 @@ npm start This will open up the application at `localhost:3000`. More on `create-react-app` [here](https://reactjs.org/docs/create-a-new-react-app.html). + +### Tests + +The dashboard uses [Cypress](https://www.cypress.io/) to run frontend tests. To open Cypress, use the command: + +`npm run cypress:open` + +This will pull up an interactive window for running tests. Click on any of the tests listed to run them. From ebc8037ff70d97ad998660905db212f0c38c276b Mon Sep 17 00:00:00 2001 From: Abby George Date: Mon, 18 May 2020 09:27:43 -0500 Subject: [PATCH 07/33] :bulb: Updating README to be more specific re: running tests. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c45b57c..ec76bcc 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,8 @@ More on `create-react-app` [here](https://reactjs.org/docs/create-a-new-react-ap ### Tests -The dashboard uses [Cypress](https://www.cypress.io/) to run frontend tests. To open Cypress, use the command: +The dashboard uses [Cypress](https://www.cypress.io/) and the local development server to run frontend tests. To open Cypress, use the command: `npm run cypress:open` -This will pull up an interactive window for running tests. Click on any of the tests listed to run them. +This will pull up an interactive window for running tests. You must also be running the dashboard locally at `http://localhost:3000` to run the tests. Click on any of the tests listed to execute them. From 886dcf8fc41ac9f4162a9f2d0992efeebc6a252a Mon Sep 17 00:00:00 2001 From: Abby George Date: Mon, 18 May 2020 10:23:28 -0500 Subject: [PATCH 08/33] :bug: Fixing missing env variable --- src/config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index 0c59d05..5498ca4 100644 --- a/src/config.js +++ b/src/config.js @@ -5,7 +5,9 @@ export const NO_AUTH = 'NO_AUTH'; export const BASIC_AUTH = 'BASIC_AUTH'; export const getBaseUrl = () => { - let envVar = process.env.REACT_APP_FHIR_API; + let envVar = window.Cypress + ? 'http://hapi.fhir.org/baseR4/' + : process.env.REACT_APP_FHIR_API; if (envVar) { if (envVar.substring(envVar.length - 1, envVar.length) !== '/') { envVar = envVar.concat('/'); From cceaf545f7162662e9971e102dc3f91b3ed7e803 Mon Sep 17 00:00:00 2001 From: Abby George Date: Tue, 19 May 2020 10:19:28 -0500 Subject: [PATCH 09/33] :recycle: Adding a folder to contain fixtures --- cypress/fixtures/{ => homepage}/resources.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename cypress/fixtures/{ => homepage}/resources.json (100%) diff --git a/cypress/fixtures/resources.json b/cypress/fixtures/homepage/resources.json similarity index 100% rename from cypress/fixtures/resources.json rename to cypress/fixtures/homepage/resources.json From b8eaa2138e2631d687093100c392ea106397b76c Mon Sep 17 00:00:00 2001 From: Abby George Date: Tue, 19 May 2020 10:27:44 -0500 Subject: [PATCH 10/33] :bug: Adding folder path to integration tests --- cypress/integration/homepage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index d40af40..d713b33 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -4,7 +4,7 @@ describe('Homepage', () => { cy.route({ method: 'GET', url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/**', - response: 'fixture:resources.json', + response: 'fixture:homepage/resources.json', }).as('getResources'); cy.visit('/resources'); cy.wait('@getResources'); From 701201d18130bee27ce6e267f4b2547dd92f90bf Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 20 May 2020 18:49:17 -0500 Subject: [PATCH 11/33] :wrench: Adding Cypress tests to CircleCI --- .circleci/config.yml | 22 ++++++++++++++++++---- package.json | 4 ++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ea6350a..12861ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,13 @@ -version: 2 +version: 2.1 +orbs: + cypress: cypress-io/cypress@1 + jobs: build: docker: - image: circleci/node:12 - working_directory: ~/repo + working_directory: ~/rep steps: - checkout @@ -27,8 +30,8 @@ jobs: -t "kidsfirstdrc/kf-ui-fhir-data-dashboard:kidsfirst" . fi - run: - name: 'Push docker images' - command: | + name: 'Push docker images' + command: | if [ $CIRCLE_BRANCH == 'master' ]; then GIT_COMMIT=$(git rev-parse HEAD) docker login -u $KF_DOCKER_HUB_USER -p $KF_DOCKER_HUB_PW @@ -39,3 +42,14 @@ jobs: docker push kidsfirstdrc/kf-ui-fhir-data-dashboard:kidsfirst docker push kidsfirstdrc/kf-ui-fhir-data-dashboard:$GIT_COMMIT fi + +workflows: + build_and_test: + jobs: + - build + - cypress/install: + build: 'npm run build' + - cypress/run: + requires: + - cypress/install + start: 'npm start' diff --git a/package.json b/package.json index 8900358..7c50ca6 100644 --- a/package.json +++ b/package.json @@ -29,12 +29,12 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "./node_modules/.bin/mocha", "eject": "react-scripts eject", "eslint": "./node_modules/.bin/eslint './src/**/*.js'", "prettier": "./node_modules/.bin/prettier './src/**/*.js'", "stylelint": "./node_modules/.bin/stylelint './src/**/*.css'", - "cypress:open": "cypress open" + "cypress:open": "cypress open", + "cypress:run": "cypress run" }, "browserslist": { "production": [ From fb642e2092bb5087d5a7bd1e2669a0a176025391 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 20 May 2020 18:51:20 -0500 Subject: [PATCH 12/33] :bug: Fixing CircleCI typo --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 12861ad..c11d14e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: docker: - image: circleci/node:12 - working_directory: ~/rep + working_directory: ~/repo steps: - checkout From 0e942dbbc445ded274ffaf44e5f7b6b25ddea9f0 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 20 May 2020 18:57:38 -0500 Subject: [PATCH 13/33] :wrench: Running tests before build job --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c11d14e..85d35ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,10 +46,10 @@ jobs: workflows: build_and_test: jobs: - - build - cypress/install: build: 'npm run build' - cypress/run: requires: - cypress/install start: 'npm start' + - build From fe9d1a0d9ad815165ee1d63df422f7383e73fef8 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 20 May 2020 18:59:19 -0500 Subject: [PATCH 14/33] :wrench: Requiring tests for build job --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 85d35ad..e8a5c3d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,4 +52,6 @@ workflows: requires: - cypress/install start: 'npm start' - - build + - build: + requires: + - cypress/run From 53afc312e0cc3ef5acb5c0301d5945edb425dcd6 Mon Sep 17 00:00:00 2001 From: Abby George Date: Thu, 21 May 2020 09:38:37 -0500 Subject: [PATCH 15/33] :wrench: Running Cypress tests in Chrome --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e8a5c3d..a4dbdef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,6 +51,8 @@ workflows: - cypress/run: requires: - cypress/install + executor: cypress/browsers-chrome69 + browser: chrome start: 'npm start' - build: requires: From 73408c0adfeafa364611c361258c11160669b5bb Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 15:56:44 -0500 Subject: [PATCH 16/33] :white_check_mark: Adding tests for Ontology page --- cypress/fixtures/ontologies.json | 107 ++++++++++++++++++++++++++++++ cypress/integration/ontologies.js | 54 +++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 cypress/fixtures/ontologies.json create mode 100644 cypress/integration/ontologies.js diff --git a/cypress/fixtures/ontologies.json b/cypress/fixtures/ontologies.json new file mode 100644 index 0000000..eaf34ee --- /dev/null +++ b/cypress/fixtures/ontologies.json @@ -0,0 +1,107 @@ +{ + "resourceType": "Bundle", + "id": "8556b522-e000-4576-b93d-e324ef538d3c", + "meta": { + "lastUpdated": "2020-05-13T20:26:16.207+00:00" + }, + "type": "searchset", + "total": 1, + "link": [ + { + "relation": "self", + "url": "http://hapi.fhir.org/baseR4/CodeSystem" + } + ], + "entry": [ + { + "fullUrl": "http://hapi.fhir.org/baseR4/CodeSystem/Code1", + "resource": { + "url": "http://hl7.org/fhir/ValueSet/Code1", + "resourceType": "CodeSystem", + "id": "Code1", + "meta": { + "versionId": "1", + "lastUpdated": "2020-02-18T06:37:32.034+00:00", + "source": "#3JuT2UFvAX9FQgnY", + "profile": ["http://hl7.org/fhir/StructureDefinition/Code1"] + }, + "version": "4.0.4", + "name": "Code1", + "title": "Code1", + "status": "active", + "experimental": false, + "valueSet": "http://hl7.org/fhir/ValueSet/Code1", + "content": "complete", + "concept": [ + { + "code": "test", + "display": "Test" + } + ] + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/CodeSystem/Code2", + "resource": { + "url": "http://hl7.org/fhir/ValueSet/Code2", + "resourceType": "CodeSystem", + "id": "Code2", + "meta": { + "versionId": "1", + "lastUpdated": "2020-02-18T06:37:32.034+00:00", + "source": "#3JuT2UFvAX9FQgnY", + "profile": ["http://hl7.org/fhir/StructureDefinition/Code2"] + }, + "version": "4.0.4", + "name": "Code2", + "title": "Code2", + "status": "active", + "experimental": false, + "valueSet": "http://hl7.org/fhir/ValueSet/Code2", + "content": "complete", + "concept": [ + { + "code": "test", + "display": "Test" + } + ] + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/CodeSystem/Code3", + "resource": { + "url": "http://hl7.org/fhir/ValueSet/Code3", + "resourceType": "CodeSystem", + "id": "Code3", + "meta": { + "versionId": "1", + "lastUpdated": "2020-02-18T06:37:32.034+00:00", + "source": "#3JuT2UFvAX9FQgnY", + "profile": ["http://hl7.org/fhir/StructureDefinition/Code3"] + }, + "version": "4.0.4", + "name": "Code3", + "title": "Code3", + "status": "active", + "experimental": false, + "valueSet": "http://hl7.org/fhir/ValueSet/Code3", + "content": "complete", + "concept": [ + { + "code": "test", + "display": "Test" + } + ] + }, + "search": { + "mode": "match" + } + } + ] +} diff --git a/cypress/integration/ontologies.js b/cypress/integration/ontologies.js new file mode 100644 index 0000000..b6f8a17 --- /dev/null +++ b/cypress/integration/ontologies.js @@ -0,0 +1,54 @@ +describe('Ontologies', () => { + before(() => { + cy.server(); + cy.route({ + method: 'GET', + url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/**', + response: 'fixture:ontologies.json', + }).as('getOntologies'); + cy.visit('/servers'); + cy.contains('hapi').click(); + cy.contains('Launch').click(); + cy.contains('Ontologies').click(); + cy.wait('@getOntologies'); + }); + + beforeEach(() => { + cy.get('.prompt').clear(); + }); + + it('loads ontologies', () => { + cy.url().should('include', '/ontologies'); + cy.contains('3 total'); + }); + + it('filters results on input', () => { + cy.get('.prompt').type('Code'); + cy.get('.ui.search>.results .result').should($x => { + expect($x).to.have.length(3); + }); + }); + + it('filters results on select', () => { + cy.get('tr').should($x => { + expect($x).to.have.length(4); + }); + cy.get('.prompt').type('Code'); + cy.get('.ui.search>.results .result') + .should($x => { + expect($x).to.have.length(3); + }) + .contains('Code1') + .click(); + cy.get('tr').should($x => { + expect($x).to.have.length(2); + }); + }); + + it('selects an ontology', () => { + cy.get('tr') + .contains('Code1') + .click(); + cy.url().should('eq', 'http://localhost:3000/ontologies/Code1'); + }); +}); From f9ec61667452160279df665236ab6a6113d17e8a Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 16:38:05 -0500 Subject: [PATCH 17/33] :white_check_mark: Updating to use env var instead of /server --- cypress/fixtures/ontologyDetails.json | 30 +++++++++++++++++++ cypress/integration/ontologies.js | 14 ++++----- cypress/integration/ontologyDetails.js | 41 ++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 9 deletions(-) create mode 100644 cypress/fixtures/ontologyDetails.json create mode 100644 cypress/integration/ontologyDetails.js diff --git a/cypress/fixtures/ontologyDetails.json b/cypress/fixtures/ontologyDetails.json new file mode 100644 index 0000000..a11a511 --- /dev/null +++ b/cypress/fixtures/ontologyDetails.json @@ -0,0 +1,30 @@ +{ + "fullUrl": "http://hapi.fhir.org/baseR4/CodeSystem/Code1", + "resource": { + "url": "http://hl7.org/fhir/ValueSet/Code1", + "resourceType": "CodeSystem", + "id": "Code1", + "meta": { + "versionId": "1", + "lastUpdated": "2020-02-18T06:37:32.034+00:00", + "source": "#3JuT2UFvAX9FQgnY", + "profile": ["http://hl7.org/fhir/StructureDefinition/Code1"] + }, + "version": "4.0.4", + "name": "Code1", + "title": "Code1", + "status": "active", + "experimental": false, + "valueSet": "http://hl7.org/fhir/ValueSet/Code1", + "content": "complete", + "concept": [ + { + "code": "test", + "display": "Test" + } + ] + }, + "search": { + "mode": "match" + } +} diff --git a/cypress/integration/ontologies.js b/cypress/integration/ontologies.js index b6f8a17..151dd2a 100644 --- a/cypress/integration/ontologies.js +++ b/cypress/integration/ontologies.js @@ -3,18 +3,13 @@ describe('Ontologies', () => { cy.server(); cy.route({ method: 'GET', - url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/**', + url: + 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/baseR4/CodeSystem', response: 'fixture:ontologies.json', }).as('getOntologies'); - cy.visit('/servers'); - cy.contains('hapi').click(); - cy.contains('Launch').click(); - cy.contains('Ontologies').click(); - cy.wait('@getOntologies'); - }); - beforeEach(() => { - cy.get('.prompt').clear(); + cy.visit('/ontologies'); + cy.wait('@getOntologies'); }); it('loads ontologies', () => { @@ -30,6 +25,7 @@ describe('Ontologies', () => { }); it('filters results on select', () => { + cy.get('.prompt').clear(); cy.get('tr').should($x => { expect($x).to.have.length(4); }); diff --git a/cypress/integration/ontologyDetails.js b/cypress/integration/ontologyDetails.js new file mode 100644 index 0000000..86ecf15 --- /dev/null +++ b/cypress/integration/ontologyDetails.js @@ -0,0 +1,41 @@ +describe('Ontology Details', () => { + before(() => { + cy.server(); + cy.route({ + method: 'GET', + url: + 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/baseR4/StructureDefinition', + response: {}, + }).as('getStructureDefinition'); + cy.route({ + method: 'GET', + url: + 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/baseR4/CodeSystem', + response: 'fixture:ontologies.json', + }).as('getOntologies'); + cy.route({ + method: 'GET', + url: + 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/baseR4/StructureDefinition/CodeSystem', + response: {type: 'CodeSystem'}, + }).as('getCodeSystemStructureDefinition'); + cy.route({ + method: 'GET', + url: + 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/baseR4/CodeSystem/**', + response: 'fixture:ontologyDetails.json', + }).as('getOntology'); + + cy.visit('/ontologies/Code1'); + cy.wait(['@getCodeSystemStructureDefinition', '@getOntology']); + }); + + it('loads ontology details', () => { + cy.url().should('include', '/ontologies/Code1'); + cy.get('a.item') + .should($x => { + expect($x).to.have.length(1); + }) + .contains('Payload'); + }); +}); From b3e322b308b80b246708905c3f48ea0fafde97bb Mon Sep 17 00:00:00 2001 From: Abby George Date: Tue, 19 May 2020 10:26:32 -0500 Subject: [PATCH 18/33] :recycle: Moving ontology fixtures to a folder --- cypress/fixtures/{ => ontologies}/ontologies.json | 0 cypress/fixtures/{ => ontologies}/ontologyDetails.json | 0 cypress/integration/ontologies.js | 2 +- cypress/integration/ontologyDetails.js | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename cypress/fixtures/{ => ontologies}/ontologies.json (100%) rename cypress/fixtures/{ => ontologies}/ontologyDetails.json (100%) diff --git a/cypress/fixtures/ontologies.json b/cypress/fixtures/ontologies/ontologies.json similarity index 100% rename from cypress/fixtures/ontologies.json rename to cypress/fixtures/ontologies/ontologies.json diff --git a/cypress/fixtures/ontologyDetails.json b/cypress/fixtures/ontologies/ontologyDetails.json similarity index 100% rename from cypress/fixtures/ontologyDetails.json rename to cypress/fixtures/ontologies/ontologyDetails.json diff --git a/cypress/integration/ontologies.js b/cypress/integration/ontologies.js index 151dd2a..76cf6d1 100644 --- a/cypress/integration/ontologies.js +++ b/cypress/integration/ontologies.js @@ -5,7 +5,7 @@ describe('Ontologies', () => { method: 'GET', url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/baseR4/CodeSystem', - response: 'fixture:ontologies.json', + response: 'fixture:ontologies/ontologies.json', }).as('getOntologies'); cy.visit('/ontologies'); diff --git a/cypress/integration/ontologyDetails.js b/cypress/integration/ontologyDetails.js index 86ecf15..5b7ea61 100644 --- a/cypress/integration/ontologyDetails.js +++ b/cypress/integration/ontologyDetails.js @@ -11,7 +11,7 @@ describe('Ontology Details', () => { method: 'GET', url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/baseR4/CodeSystem', - response: 'fixture:ontologies.json', + response: 'fixture:ontologies/ontologies.json', }).as('getOntologies'); cy.route({ method: 'GET', @@ -23,7 +23,7 @@ describe('Ontology Details', () => { method: 'GET', url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/baseR4/CodeSystem/**', - response: 'fixture:ontologyDetails.json', + response: 'fixture:ontologies/ontologyDetails.json', }).as('getOntology'); cy.visit('/ontologies/Code1'); From 12528351b900dfb1e15f1233408b0a6120caa09e Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 14:46:05 -0500 Subject: [PATCH 19/33] :white_check_mark: Adding Cypress and first tests, also adding polyfill for Fetch --- cypress.json | 6 + cypress/fixtures/resources.json | 5189 +++++++++++++++++++++++++++++++ cypress/integration/homepage.js | 130 + cypress/plugins/index.js | 21 + cypress/support/commands.js | 30 + cypress/support/index.js | 20 + package-lock.json | 926 ++++++ package.json | 7 +- src/index.js | 1 + 9 files changed, 6328 insertions(+), 2 deletions(-) create mode 100644 cypress.json create mode 100644 cypress/fixtures/resources.json create mode 100644 cypress/integration/homepage.js create mode 100644 cypress/plugins/index.js create mode 100644 cypress/support/commands.js create mode 100644 cypress/support/index.js diff --git a/cypress.json b/cypress.json new file mode 100644 index 0000000..6a81f4e --- /dev/null +++ b/cypress.json @@ -0,0 +1,6 @@ +{ + "baseUrl": "http://localhost:3000", + "env": {}, + "video": false, + "chromeWebSecurity": false +} diff --git a/cypress/fixtures/resources.json b/cypress/fixtures/resources.json new file mode 100644 index 0000000..a3ed311 --- /dev/null +++ b/cypress/fixtures/resources.json @@ -0,0 +1,5189 @@ +{ + "resourceType": "Bundle", + "id": "12345", + "meta": { + "lastUpdated": "2020-05-13T18:53:40.532+00:00" + }, + "type": "searchset", + "total": 123, + "link": [ + { + "relation": "self", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition" + } + ], + "entry": [ + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/1", + "resource": { + "resourceType": "StructureDefinition", + "id": "1", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" + }, + "url": "http://pms-fhir.org/fhir/StructureDefinition/pmsCitizenship", + "name": "PmsCitizenship", + "status": "draft", + "description": "Structure of patient citizenship", + "fhirVersion": "4.0.0", + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Patient" + }, + { + "type": "element", + "expression": "Composition" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Optional Extensions Element", + "definition": "Optional Extension Element - found in all resources.", + "min": 0, + "max": "1", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality", + "path": "Extension.extension", + "sliceName": "nationality", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality.id", + "path": "Extension.extension.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:nationality.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality.url", + "path": "Extension.extension.url", + "representation": ["xmlAttr"], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:nationality.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType", + "path": "Extension.extension", + "sliceName": "documentType", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType.id", + "path": "Extension.extension.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:documentType.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType.url", + "path": "Extension.extension.url", + "representation": ["xmlAttr"], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentType.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber", + "path": "Extension.extension", + "sliceName": "documentNumber", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber.id", + "path": "Extension.extension.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:documentNumber.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber.url", + "path": "Extension.extension.url", + "representation": ["xmlAttr"], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:documentNumber.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": ["xmlAttr"], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "_code": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", + "valueString": "string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", + "valueString": "xsd:string" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" + } + ] + } + } + ], + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", + "comment": "A stream of bytes, base64 encoded", + "min": 0, + "max": "0", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + } + ], + "condition": ["ele-1"], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div" + } + ], + "mapping": [ + { + "identity": "rim", + "map": "n/a" + }, + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "max": "1" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "rules": "open" + } + }, + { + "id": "Extension.extension:nationality", + "path": "Extension.extension", + "sliceName": "nationality", + "max": "1" + }, + { + "id": "Extension.extension:nationality.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false + }, + { + "id": "Extension.extension:nationality.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "min": 1, + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Extension.extension:documentType", + "path": "Extension.extension", + "sliceName": "documentType", + "max": "1" + }, + { + "id": "Extension.extension:documentType.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false + }, + { + "id": "Extension.extension:documentType.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "min": 1, + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Extension.extension:documentNumber", + "path": "Extension.extension", + "sliceName": "documentNumber", + "max": "1" + }, + { + "id": "Extension.extension:documentNumber.value[x]:valueString", + "path": "Extension.extension.value[x]", + "sliceName": "valueString", + "sliceIsConstraining": false + }, + { + "id": "Extension.extension:documentNumber.value[x]:valueString", + "path": "Extension.extension.valueString", + "sliceName": "valueString", + "min": 1, + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "max": "0" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/619087", + "resource": { + "resourceType": "StructureDefinition", + "id": "619087", + "meta": { + "versionId": "6", + "lastUpdated": "2020-02-10T19:51:23.903+00:00", + "source": "#Y1V9dg0PSNL59Txf" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/619087", + "name": "BloodPressure", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Observation", + "path": "Observation", + "short": "Vérnyomás profil", + "definition": "Vérnyomás profil, bal-, jobb kar, szisztolés, diasztolés" + }, + { + "id": "Observation.identifier.system", + "path": "Observation.identifier.system", + "min": 1 + }, + { + "id": "Observation.identifier.value", + "path": "Observation.identifier.value", + "min": 1 + }, + { + "id": "Observation.code.coding", + "path": "Observation.code.coding", + "max": "1" + }, + { + "id": "Observation.code.coding.code", + "path": "Observation.code.coding.code", + "fixedCode": "85354-9" + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient" + ] + } + ] + }, + { + "id": "Observation.effective[x]:effectiveDateTime", + "path": "Observation.effectiveDateTime", + "sliceName": "effectiveDateTime", + "short": "Mintevétel ideje", + "min": 1, + "type": [ + { + "code": "dateTime" + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "max": "0" + }, + { + "id": "Observation.component", + "path": "Observation.component", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "code.coding.code" + } + ], + "rules": "open" + } + }, + { + "id": "Observation.component:Systolic", + "path": "Observation.component", + "sliceName": "Systolic", + "label": "Szisztolés", + "min": 1, + "max": "1" + }, + { + "id": "Observation.component:Systolic.code.coding.system", + "path": "Observation.component.code.coding.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Observation.component:Systolic.code.coding.code", + "path": "Observation.component.code.coding.code", + "fixedCode": "8480-6" + }, + { + "id": "Observation.component:Systolic.value[x]:valueQuantity", + "path": "Observation.component.valueQuantity", + "sliceName": "valueQuantity", + "min": 1, + "type": [ + { + "code": "Quantity" + } + ] + }, + { + "id": "Observation.component:Systolic.value[x]:valueQuantity.unit", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "Observation.component.valueQuantity.unit", + "min": 1, + "fixedString": "mm[Hg]" + }, + { + "id": "Observation.component:Systolic.value[x]:valueQuantity.system", + "path": "Observation.component.valueQuantity.system", + "min": 1, + "fixedUri": "http://unitsofmeasure.org" + }, + { + "id": "Observation.component:Diastolic", + "path": "Observation.component", + "sliceName": "Diastolic", + "label": "Diasztolés", + "min": 1, + "max": "1" + }, + { + "id": "Observation.component:Diastolic.code.coding.code", + "path": "Observation.component.code.coding.code", + "fixedCode": "8462-4" + }, + { + "id": "Observation.component:Diastolic.value[x]:valueQuantity", + "path": "Observation.component.valueQuantity", + "sliceName": "valueQuantity", + "min": 1, + "type": [ + { + "code": "Quantity" + } + ] + }, + { + "id": "Observation.component:Diastolic.value[x]:valueQuantity.unit", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "Observation.component.valueQuantity.unit", + "min": 1, + "fixedString": "mm[Hg]" + }, + { + "id": "Observation.component:Diastolic.value[x]:valueQuantity.system", + "path": "Observation.component.valueQuantity.system", + "min": 1, + "fixedUri": "http://unitsofmeasure.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/structuredefinition", + "resource": { + "resourceType": "StructureDefinition", + "id": "structuredefinition", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-23T05:56:25.110+00:00", + "source": "#b7904edd144c75d2" + }, + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition", + "name": "StructureDefinitionSleep", + "status": "draft", + "date": "2019-08-21", + "kind": "resource", + "abstract": true + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697625", + "resource": { + "resourceType": "StructureDefinition", + "id": "697625", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T03:16:31.994+00:00", + "source": "#1aQ03bcu7wC09AvJ" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient3", + "name": "TestEncounter", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Encounter", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient2", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697626", + "resource": { + "resourceType": "StructureDefinition", + "id": "697626", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T03:16:49.726+00:00", + "source": "#JfS3mOrpkCfkEHZX" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient4", + "name": "TestSpecimen", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Specimen", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient3", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697623", + "resource": { + "resourceType": "StructureDefinition", + "id": "697623", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T03:13:14.988+00:00", + "source": "#B7YNDXX9geGPTmHk" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient1", + "name": "TestGroup", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Group", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697624", + "resource": { + "resourceType": "StructureDefinition", + "id": "697624", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T03:14:13.142+00:00", + "source": "#eqBsP5F2whb0EzFA" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient2", + "name": "TestCondition", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Condition", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient1", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697215", + "resource": { + "resourceType": "StructureDefinition", + "id": "697215", + "meta": { + "versionId": "2", + "lastUpdated": "2020-03-23T03:27:39.407+00:00", + "source": "#XrgHxgeriZdTbdtB" + }, + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient", + "name": "DemoPatient", + "status": "draft", + "date": "2019-05-18T18:18:51.2354472Z", + "publisher": "Freisleben Attila", + "description": "Vérnyomás profil", + "fhirVersion": "3.0.1", + "kind": "resource", + "abstract": false, + "type": "Patient", + "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/Patient", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Patient", + "path": "Patient", + "short": "Information about an individual or animal receiving health care services", + "definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.", + "alias": ["SubjectOfCare Client Resident"], + "min": 0, + "max": "*", + "base": { + "path": "Patient", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.div.exists()", + "xpath": "exists(f:text/h:div)", + "source": "DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": "Patient[classCode=PAT]" + }, + { + "identity": "cda", + "map": "ClinicalDocument.recordTarget.patientRole" + } + ] + }, + { + "id": "Patient.id", + "path": "Patient.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "id" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Patient.implicitRules", + "path": "Patient.implicitRules", + "short": "A set of rules under which this content was created", + "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.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Patient.language", + "path": "Patient.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + } + }, + { + "id": "Patient.racee", + "path": "Patient.racee", + "short": "Race of the patient", + "definition": "Race", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.racee", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + } + }, + { + "id": "Patient.text", + "path": "Patient.text", + "short": "Text summary of the resource, for human interpretation", + "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.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": ["narrative", "html", "xhtml", "display"], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Patient.contained", + "path": "Patient.contained", + "short": "Contained, inline Resources", + "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.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.extension", + "path": "Patient.extension", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.modifierExtension", + "path": "Patient.modifierExtension", + "short": "Extensions that cannot be ignored", + "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).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "short": "An identifier for this patient", + "definition": "An identifier for this patient.", + "requirements": "Patients are almost always assigned specific numerical identifiers.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": "id" + }, + { + "identity": "cda", + "map": ".id" + } + ] + }, + { + "id": "Patient.active", + "path": "Patient.active", + "short": "Whether this patient's record is in active use", + "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.", + "comment": "If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.", + "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.active", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element", + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid", + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": "statusCode" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.name", + "path": "Patient.name", + "short": "A name associated with the patient", + "definition": "A name associated with the individual.", + "comment": "A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.", + "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.name", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "HumanName" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-5, PID-9" + }, + { + "identity": "rim", + "map": "name" + }, + { + "identity": "cda", + "map": ".patient.name" + } + ] + }, + { + "id": "Patient.telecom", + "path": "Patient.telecom", + "short": "A contact detail for the individual", + "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.", + "comment": "A Patient may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and also to help with identification. The address might not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).", + "requirements": "People have (primary) ways to contact them in some way such as phone, email.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-13, PID-14, PID-40" + }, + { + "identity": "rim", + "map": "telecom" + }, + { + "identity": "cda", + "map": ".telecom" + } + ] + }, + { + "id": "Patient.gender", + "path": "Patient.gender", + "short": "male | female | other | unknown", + "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.", + "comment": "The gender might not match the biological sex as determined by genetics or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than male and female, though the vast majority of systems and contexts only support male and female. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, social, etc.) However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice. Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosomal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error. See the Patient Gender and Sex section for additional information about communicating patient gender and sex.", + "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.gender", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdministrativeGender" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "required", + "description": "The gender of a person used for administrative purposes.", + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-8" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" + }, + { + "identity": "cda", + "map": ".patient.administrativeGenderCode" + } + ] + }, + { + "id": "Patient.birthDate", + "path": "Patient.birthDate", + "short": "The date of birth for the individual", + "definition": "The date of birth for the individual.", + "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).", + "requirements": "Age of the individual drives many clinical processes.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.birthDate", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "date" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-7" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime" + }, + { + "identity": "cda", + "map": ".patient.birthTime" + }, + { + "identity": "loinc", + "map": "21112-8" + } + ] + }, + { + "id": "Patient.deceased[x]", + "path": "Patient.deceased[x]", + "short": "Indicates if the individual is deceased or not", + "definition": "Indicates if the individual is deceased or not.", + "comment": "If there's no value in the instance, it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.", + "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.deceased[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "dateTime" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.", + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-30 (bool) and PID-29 (datetime)" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.address", + "path": "Patient.address", + "short": "An address for the individual", + "definition": "An address for the individual.", + "comment": "Patient may have multiple addresses with different uses or applicable periods.", + "requirements": "May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.address", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Address" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-11" + }, + { + "identity": "rim", + "map": "addr" + }, + { + "identity": "cda", + "map": ".addr" + } + ] + }, + { + "id": "Patient.maritalStatus", + "path": "Patient.maritalStatus", + "short": "Marital (civil) status of a patient", + "definition": "This field contains a patient's most recent marital (civil) status.", + "requirements": "Most, if not all systems capture it.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.maritalStatus", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MaritalStatus" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "extensible", + "description": "The domestic partnership status of a person.", + "valueSet": "http://hl7.org/fhir/ValueSet/marital-status" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-16" + }, + { + "identity": "rim", + "map": "player[classCode=PSN]/maritalStatusCode" + }, + { + "identity": "cda", + "map": ".patient.maritalStatusCode" + } + ] + }, + { + "id": "Patient.multipleBirth[x]", + "path": "Patient.multipleBirth[x]", + "short": "Whether patient is part of a multiple birth", + "definition": "Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).", + "comment": "Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).", + "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.multipleBirth[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "integer" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-24 (bool), PID-25 (integer)" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.photo", + "path": "Patient.photo", + "short": "Image of the patient", + "definition": "Image of the patient.", + "comment": "Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.", + "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.photo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Attachment" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-5 - needs a profile" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", + "valueString": "Contact" + } + ], + "path": "Patient.contact", + "short": "A contact party (e.g. guardian, partner, friend) for the patient", + "definition": "A contact party (e.g. guardian, partner, friend) for the patient.", + "comment": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.", + "requirements": "Need to track people you can contact about the patient.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "Element" + }, + { + "key": "pat-1", + "severity": "error", + "human": "SHALL at least contain a contact's details or a reference to an organization", + "expression": "name.exists() or telecom.exists() or address.exists() or organization.exists()", + "xpath": "exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.id", + "path": "Patient.contact.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.extension", + "path": "Patient.contact.extension", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.modifierExtension", + "path": "Patient.contact.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "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).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", + "alias": ["extensions", "user content", "modifiers"], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.contact.relationship", + "path": "Patient.contact.relationship", + "short": "The kind of relationship", + "definition": "The nature of the relationship between the patient and the contact person.", + "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact.relationship", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ContactRelationship" + } + ], + "strength": "extensible", + "description": "The nature of the relationship between a patient and a contact person for that patient.", + "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship" + }, + "mapping": [ + { + "identity": "v2", + "map": "NK1-7, NK1-3" + }, + { + "identity": "rim", + "map": "code" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.name", + "path": "Patient.contact.name", + "short": "A name associated with the contact person", + "definition": "A name associated with the contact person.", + "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.name", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "HumanName" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-2" + }, + { + "identity": "rim", + "map": "name" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.telecom", + "path": "Patient.contact.telecom", + "short": "A contact detail for the person", + "definition": "A contact detail for the person, e.g. a telephone number or an email address.", + "comment": "Contact may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.", + "requirements": "People have (primary) ways to contact them in some way such as phone, email.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-5, NK1-6, NK1-40" + }, + { + "identity": "rim", + "map": "telecom" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.address", + "path": "Patient.contact.address", + "short": "Address for the contact person", + "definition": "Address for the contact person.", + "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.address", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Address" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-4" + }, + { + "identity": "rim", + "map": "addr" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.gender", + "path": "Patient.contact.gender", + "short": "male | female | other | unknown", + "definition": "Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.", + "requirements": "Needed to address the person correctly.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.gender", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdministrativeGender" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "required", + "description": "The gender of a person used for administrative purposes.", + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "NK1-15" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.organization", + "path": "Patient.contact.organization", + "short": "Organization that is associated with the contact", + "definition": "Organization on behalf of which the contact is acting or for which the contact is working.", + "requirements": "For guardians or business related contacts, the organization is relevant.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.organization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization" + ] + } + ], + "condition": ["pat-1"], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41" + }, + { + "identity": "rim", + "map": "scoper" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.period", + "path": "Patient.contact.period", + "short": "The period during which this contact person or organization is valid to be contacted relating to this patient", + "definition": "The period during which this contact person or organization is valid to be contacted relating to this patient.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "effectiveTime" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication", + "path": "Patient.communication", + "short": "A language which may be used to communicate with the patient about his or her health", + "definition": "A language which may be used to communicate with the patient about his or her health.", + "comment": "If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations. For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.", + "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.communication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "LanguageCommunication" + }, + { + "identity": "cda", + "map": "patient.languageCommunication" + } + ] + }, + { + "id": "Patient.communication.id", + "path": "Patient.communication.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication.extension", + "path": "Patient.communication.extension", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication.modifierExtension", + "path": "Patient.communication.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "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).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", + "alias": ["extensions", "user content", "modifiers"], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.communication.language", + "path": "Patient.communication.language", + "short": "The language which can be used to communicate with the patient about his or her health", + "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.", + "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.", + "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.communication.language", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-15, LAN-2" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" + }, + { + "identity": "cda", + "map": ".languageCode" + } + ] + }, + { + "id": "Patient.communication.preferred", + "path": "Patient.communication.preferred", + "short": "Language preference indicator", + "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).", + "comment": "This language is specifically identified for communicating healthcare information.", + "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.communication.preferred", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-15" + }, + { + "identity": "rim", + "map": "preferenceInd" + }, + { + "identity": "cda", + "map": ".preferenceInd" + } + ] + }, + { + "id": "Patient.generalPractitioner", + "path": "Patient.generalPractitioner", + "short": "Patient's nominated primary care provider", + "definition": "Patient's nominated care provider.", + "comment": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles. It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.", + "alias": ["careProvider"], + "min": 0, + "max": "*", + "base": { + "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" + ] + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PD1-4" + }, + { + "identity": "rim", + "map": "subjectOf.CareEvent.performer.AssignedEntity" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.managingOrganization", + "path": "Patient.managingOrganization", + "short": "Organization that is the custodian of the patient record", + "definition": "Organization that is the custodian of the patient record.", + "comment": "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).", + "requirements": "Need to know who recognizes this patient record, manages and updates it.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.managingOrganization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization" + ] + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "scoper" + }, + { + "identity": "cda", + "map": ".providerOrganization" + } + ] + }, + { + "id": "Patient.link", + "path": "Patient.link", + "short": "Link to another patient resource that concerns the same actual person", + "definition": "Link to another patient resource that concerns the same actual patient.", + "comment": "There is no assumption that linked patient records have mutual links.", + "requirements": "There are multiple use cases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and \n* Distribution of patient information across multiple servers.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.link", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "outboundLink" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.id", + "path": "Patient.link.id", + "representation": ["xmlAttr"], + "short": "Unique id for inter-element referencing", + "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", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.extension", + "path": "Patient.link.extension", + "short": "Additional content defined by implementations", + "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.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": ["extensions", "user content"], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.modifierExtension", + "path": "Patient.link.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "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).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", + "alias": ["extensions", "user content", "modifiers"], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.link.other", + "path": "Patient.link.other", + "short": "The other patient or related person resource that the link refers to", + "definition": "The other patient resource that the link refers to.", + "comment": "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.link.other", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy", + "valueBoolean": false + } + ], + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson" + ] + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-3, MRG-1" + }, + { + "identity": "rim", + "map": "id" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.type", + "path": "Patient.link.type", + "short": "replaced-by | replaces | refer | seealso", + "definition": "The type of link between this patient resource and another patient resource.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.link.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "LinkType" + } + ], + "strength": "required", + "description": "The type of link between this patient resource and another patient resource.", + "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.0" + }, + "mapping": [ + { + "identity": "rim", + "map": "typeCode" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "system" + } + ], + "rules": "open" + } + }, + { + "id": "Patient.identifier:IDCard", + "path": "Patient.identifier", + "sliceName": "IDCard" + }, + { + "id": "Patient.identifier:IDCard.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + }, + { + "id": "Patient.identifier:DriveLicense", + "path": "Patient.identifier", + "sliceName": "DriveLicense" + }, + { + "id": "Patient.identifier:DriveLicense.system", + "path": "Patient.identifier.system", + "fixedUri": "http://loinc.org" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25232", + "resource": { + "resourceType": "StructureDefinition", + "id": "25232", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-24T07:17:35.634+00:00", + "source": "#ef600769079a2dd1" + }, + "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-execute-simple-feasibility", + "version": "0.1.0", + "name": "TaskExecuteSimpleFeasibility", + "status": "active", + "date": "2019-05-21", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": false, + "type": "Task", + "baseDefinition": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.instantiatesUri", + "path": "Task.instantiatesUri", + "fixedUri": "http://highmed.org/bpe/Process/executeSimpleFeasibility/1.0.0" + }, + { + "id": "Task.input", + "path": "Task.input", + "min": 4 + }, + { + "id": "Task.input:message-name", + "path": "Task.input", + "sliceName": "message-name" + }, + { + "id": "Task.input:message-name.value[x]", + "path": "Task.input.value[x]", + "fixedString": "executeSimpleFeasibilityMessage" + }, + { + "id": "Task.input:research-study", + "path": "Task.input", + "sliceName": "research-study", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:research-study.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:research-study.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/task-input" + }, + { + "id": "Task.input:research-study.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "research-study-reference" + }, + { + "id": "Task.input:research-study.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://highmed.org/fhir/StructureDefinition/highmed-research-study" + ] + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25233", + "resource": { + "resourceType": "StructureDefinition", + "id": "25233", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-24T07:18:30.536+00:00", + "source": "#3e8a9cc9745882e5" + }, + "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", + "version": "0.1.0", + "name": "TaskBase", + "status": "active", + "date": "2019-05-21", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": true, + "type": "Task", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.instantiatesUri", + "path": "Task.instantiatesUri", + "min": 1 + }, + { + "id": "Task.intent", + "path": "Task.intent", + "fixedCode": "order" + }, + { + "id": "Task.authoredOn", + "path": "Task.authoredOn", + "min": 1 + }, + { + "id": "Task.requester", + "path": "Task.requester", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://highmed.org/fhir/StructureDefinition/highmed-organization" + ] + } + ] + }, + { + "id": "Task.restriction", + "path": "Task.restriction", + "min": 1 + }, + { + "id": "Task.restriction.recipient", + "path": "Task.restriction.recipient", + "min": 1, + "max": "1", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://highmed.org/fhir/StructureDefinition/highmed-organization" + ] + } + ] + }, + { + "id": "Task.input", + "path": "Task.input", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "type.coding.code" + } + ], + "rules": "openAtEnd" + }, + "min": 3 + }, + { + "id": "Task.input:message-name", + "path": "Task.input", + "sliceName": "message-name", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:message-name.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:message-name.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:message-name.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "message-name" + }, + { + "id": "Task.input:message-name.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Task.input:business-key", + "path": "Task.input", + "sliceName": "business-key", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:business-key.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:business-key.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:business-key.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "business-key" + }, + { + "id": "Task.input:business-key.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Task.input:correlation-key", + "path": "Task.input", + "sliceName": "correlation-key", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:correlation-key.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:correlation-key.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:correlation-key.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "correlation-key" + }, + { + "id": "Task.input:correlation-key.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Task.output", + "path": "Task.output", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "type.coding.code" + } + ], + "rules": "open" + } + }, + { + "id": "Task.output:error", + "path": "Task.output", + "sliceName": "error" + }, + { + "id": "Task.output:error.type.coding", + "path": "Task.output.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.output:error.type.coding.system", + "path": "Task.output.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.output:error.type.coding.code", + "path": "Task.output.type.coding.code", + "fixedCode": "error" + }, + { + "id": "Task.output:error.value[x]", + "path": "Task.output.value[x]", + "type": [ + { + "code": "string" + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25234", + "resource": { + "resourceType": "StructureDefinition", + "id": "25234", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-24T07:19:08.993+00:00", + "source": "#20a371061d227b3c" + }, + "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-execute-simple-feasibility", + "version": "0.1.0", + "name": "TaskExecuteSimpleFeasibility", + "status": "active", + "date": "2019-05-21", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": false, + "type": "Task", + "baseDefinition": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.instantiatesUri", + "path": "Task.instantiatesUri", + "fixedUri": "http://highmed.org/bpe/Process/executeSimpleFeasibility/1.0.0" + }, + { + "id": "Task.input", + "path": "Task.input", + "min": 4 + }, + { + "id": "Task.input:message-name", + "path": "Task.input", + "sliceName": "message-name" + }, + { + "id": "Task.input:message-name.value[x]", + "path": "Task.input.value[x]", + "fixedString": "executeSimpleFeasibilityMessage" + }, + { + "id": "Task.input:research-study", + "path": "Task.input", + "sliceName": "research-study", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:research-study.type.coding", + "path": "Task.input.type.coding", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:research-study.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/task-input" + }, + { + "id": "Task.input:research-study.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "research-study-reference" + }, + { + "id": "Task.input:research-study.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://highmed.org/fhir/StructureDefinition/highmed-research-study" + ] + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697727", + "resource": { + "resourceType": "StructureDefinition", + "id": "697727", + "meta": { + "versionId": "1", + "lastUpdated": "2020-03-23T12:26:47.330+00:00", + "source": "#rKbUCnzvdd9MCZfP" + }, + "url": "https://www.ehealth.fgov.be/standards/fhir/StructureDefinition/be-eagreementmessageheader", + "name": "EAgreementMessageHeader", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "MessageHeader", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MessageHeader", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "MessageHeader.event[x]", + "path": "MessageHeader.event[x]", + "type": [ + { + "code": "Coding" + } + ] + }, + { + "id": "MessageHeader.event[x].system", + "path": "MessageHeader.event[x].system", + "fixedUri": "https://www.mycarenet.be/fhir/CodeSystem/message-events" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38344", + "resource": { + "resourceType": "StructureDefinition", + "id": "38344", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:01:41.040+00:00", + "source": "#ce2ebf25197b55bb" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_List", + "name": "DL_List", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "List", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List", + "derivation": "constraint" + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38345", + "resource": { + "resourceType": "StructureDefinition", + "id": "38345", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:01:58.701+00:00", + "source": "#98578a5737fafb37" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_Organization", + "name": "DL_Organization", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Organization", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Organization.name", + "path": "Organization.name", + "min": 1 + }, + { + "id": "Organization.contact", + "path": "Organization.contact", + "min": 1 + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38346", + "resource": { + "resourceType": "StructureDefinition", + "id": "38346", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:02:18.857+00:00", + "source": "#27217fbed1898bac" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_Practitioner", + "name": "DL_Practitioner", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Practitioner", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Practitioner.name", + "path": "Practitioner.name", + "min": 1, + "max": "1" + }, + { + "id": "Practitioner.telecom", + "path": "Practitioner.telecom", + "min": 1, + "max": "1" + }, + { + "id": "Practitioner.telecom.system", + "path": "Practitioner.telecom.system", + "fixedCode": "email" + }, + { + "id": "Practitioner.telecom.value", + "path": "Practitioner.telecom.value", + "min": 1 + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38347", + "resource": { + "resourceType": "StructureDefinition", + "id": "38347", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:02:33.125+00:00", + "source": "#45d83081a5c76a9a" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_PractitionerRole", + "name": "DL_PractitionerRole", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "PractitionerRole", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "PractitionerRole.practitioner", + "path": "PractitionerRole.practitioner", + "min": 1 + }, + { + "id": "PractitionerRole.organization", + "path": "PractitionerRole.organization", + "min": 1 + }, + { + "id": "PractitionerRole.code.coding.system", + "path": "PractitionerRole.code.coding.system", + "fixedUri": "http://snomed.info/sct" + }, + { + "id": "PractitionerRole.code.coding.code", + "path": "PractitionerRole.code.coding.code", + "fixedCode": "768816002" + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38348", + "resource": { + "resourceType": "StructureDefinition", + "id": "38348", + "meta": { + "versionId": "1", + "lastUpdated": "2019-09-30T19:02:48.628+00:00", + "source": "#c7644bb4f9c6b42e" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_ResearchStudy", + "name": "DL_ResearchStudy", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "BRIDG5.1", + "uri": "https://bridgmodel.nci.nih.gov", + "name": "BRIDG 5.1 Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "clinicaltrials-gov", + "uri": "http://clinicaltrials.gov", + "name": "ClinicalTrials.gov Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "ResearchStudy", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ResearchStudy", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "ResearchStudy.title", + "path": "ResearchStudy.title", + "min": 1 + }, + { + "id": "ResearchStudy.sponsor", + "path": "ResearchStudy.sponsor", + "min": 1 + }, + { + "id": "ResearchStudy.principalInvestigator", + "path": "ResearchStudy.principalInvestigator", + "min": 1 + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38349", + "resource": { + "resourceType": "StructureDefinition", + "id": "38349", + "meta": { + "versionId": "3", + "lastUpdated": "2019-10-01T00:56:17.847+00:00", + "source": "#a4ba625d6025248c" + }, + "url": "http://sirb.org/fhir/StructureDefinition/DL_Composition", + "name": "DL_Composition", + "status": "draft", + "fhirVersion": "4.0.0", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "cda", + "uri": "http://hl7.org/v3/cda", + "name": "CDA (R2)" + }, + { + "identity": "fhirdocumentreference", + "uri": "http://hl7.org/fhir/documentreference", + "name": "FHIR DocumentReference" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Composition", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Composition.section", + "path": "Composition.section", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:title", + "path": "Composition.section", + "sliceName": "title" + }, + { + "id": "Composition.section:information", + "path": "Composition.section", + "sliceName": "information" + }, + { + "id": "Composition.section:information.entry", + "path": "Composition.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:information.entry:Practitioner", + "path": "Composition.section.entry", + "sliceName": "Practitioner", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Practitioner" + ] + } + ] + }, + { + "id": "Composition.section:information.entry:Organization", + "path": "Composition.section.entry", + "sliceName": "Organization", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Organization" + ] + } + ] + }, + { + "id": "Composition.section:information.entry:ResearchStudy", + "path": "Composition.section.entry", + "sliceName": "ResearchStudy", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_ResearchStudy" + ] + } + ] + }, + { + "id": "Composition.section:relianceDetermination", + "path": "Composition.section", + "sliceName": "relianceDetermination" + }, + { + "id": "Composition.section:relianceDetermination.section", + "path": "Composition.section.section", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:relianceDetermination.section:reviewingIRB", + "path": "Composition.section.section", + "sliceName": "reviewingIRB" + }, + { + "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry", + "path": "Composition.section.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry:Organization", + "path": "Composition.section.section.entry", + "sliceName": "Organization", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Organization" + ] + } + ] + }, + { + "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry:Practitioner", + "path": "Composition.section.section.entry", + "sliceName": "Practitioner", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Practitioner" + ] + } + ] + }, + { + "id": "Composition.section:relianceDetermination.section:approvedIRBList", + "path": "Composition.section.section", + "sliceName": "approvedIRBList" + }, + { + "id": "Composition.section:relianceDetermination.section:approvedIRBList.entry", + "path": "Composition.section.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:relianceDetermination.section:approvedIRBList.entry:List", + "path": "Composition.section.section.entry", + "sliceName": "List", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_List" + ] + } + ] + }, + { + "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList", + "path": "Composition.section.section", + "sliceName": "nonApprovedIRBList" + }, + { + "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList.entry", + "path": "Composition.section.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList.entry:List", + "path": "Composition.section.section.entry", + "sliceName": "List", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_List" + ] + } + ] + }, + { + "id": "Composition.section:responsibilities", + "path": "Composition.section", + "sliceName": "responsibilities" + }, + { + "id": "Composition.section:responsibilities.section", + "path": "Composition.section.section", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:responsibilities.section:overallPIResponsibilities", + "path": "Composition.section.section", + "sliceName": "overallPIResponsibilities" + }, + { + "id": "Composition.section:responsibilities.section:siteInvestigatorResponsibilities", + "path": "Composition.section.section", + "sliceName": "siteInvestigatorResponsibilities" + }, + { + "id": "Composition.section:close", + "path": "Composition.section", + "sliceName": "close" + }, + { + "id": "Composition.section:close.entry", + "path": "Composition.section.entry", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "id" + } + ], + "rules": "open" + } + }, + { + "id": "Composition.section:close.entry:organization", + "path": "Composition.section.entry", + "sliceName": "organization", + "type": [ + { + "code": "Reference", + "profile": [ + "http://sirb.org/fhir/StructureDefinition/DL_Organization" + ] + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38905", + "resource": { + "resourceType": "StructureDefinition", + "id": "38905", + "meta": { + "versionId": "1", + "lastUpdated": "2019-10-01T10:23:46.874+00:00", + "source": "#0cc4be9be56ea7a5" + }, + "url": "http://highmed.org/fhir/StructureDefinition/BaseTask", + "name": "BaseTask", + "status": "draft", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": false, + "type": "Task", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.input", + "path": "Task.input", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "type.coding.system" + }, + { + "type": "value", + "path": "type.coding.code" + } + ], + "rules": "open" + }, + "min": 1 + }, + { + "id": "Task.input:baseInputSlice", + "path": "Task.input", + "sliceName": "baseInputSlice", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:baseInputSlice.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:baseInputSlice.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "base-input-slice" + }, + { + "id": "Task.input:baseInputSlice.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + }, + { + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/39146", + "resource": { + "resourceType": "StructureDefinition", + "id": "39146", + "meta": { + "versionId": "1", + "lastUpdated": "2019-10-01T11:22:00.829+00:00", + "source": "#2416ea9716752386" + }, + "url": "http://highmed.org/fhir/StructureDefinition/ExtendedTask", + "name": "ExtendedTask", + "status": "draft", + "fhirVersion": "4.0.0", + "kind": "resource", + "abstract": false, + "type": "Task", + "baseDefinition": "http://highmed.org/fhir/StructureDefinition/BaseTask", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Task.input", + "path": "Task.input", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "type.coding.system" + }, + { + "type": "value", + "path": "type.coding.code" + } + ], + "rules": "open" + }, + "min": 2 + }, + { + "id": "Task.input:extendedInputSlice", + "path": "Task.input", + "sliceName": "extendedInputSlice", + "min": 1, + "max": "1" + }, + { + "id": "Task.input:extendedInputSlice.type.coding.system", + "path": "Task.input.type.coding.system", + "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" + }, + { + "id": "Task.input:extendedInputSlice.type.coding.code", + "path": "Task.input.type.coding.code", + "fixedCode": "extended-input-slice" + }, + { + "id": "Task.input:extendedInputSlice.value[x]", + "path": "Task.input.value[x]", + "type": [ + { + "code": "string" + } + ] + } + ] + } + }, + "search": { + "mode": "match" + } + } + ] +} diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js new file mode 100644 index 0000000..0b4083b --- /dev/null +++ b/cypress/integration/homepage.js @@ -0,0 +1,130 @@ +describe('Homepage', () => { + before(() => { + cy.server(); + cy.route({ + method: 'GET', + url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/**', + response: 'fixture:resources.json', + }).as('getResources'); + cy.visit('/servers'); + cy.contains('hapi').click(); + cy.contains('Launch').click(); + cy.wait('@getResources'); + }); + + beforeEach(() => { + cy.get('.header__controls-view') + .children('i') + .get('.grid') + .click(); + cy.get('.ui.card').should('exist'); + cy.get('.sortable-table').should('not.exist'); + cy.get('.prompt').clear(); + }); + + it('loads resources', () => { + cy.url().should('include', '/resources'); + cy.contains('18 total'); + }); + + it('filters search results on input', () => { + cy.get('.prompt').type('Pa'); + cy.get('.ui.search>.results').should($x => { + expect($x).to.have.length(1); + }); + }); + + it('filters results on search', () => { + cy.get('.ui.card').should($x => { + expect($x).to.have.length(18); + }); + cy.get('.prompt').type('Patient'); + cy.get('.ui.search>.results') + .should($x => { + expect($x).to.have.length(1); + }) + .click(); + cy.get('.ui.card').should($x => { + expect($x).to.have.length(1); + }); + }); + + it('selects the correct icons for various resource types', () => { + cy.contains('Base type: Patient') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'user'); + cy.contains('Base type: Specimen') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'lab'); + cy.contains('Base type: Group') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'users'); + cy.contains('Base type: Condition') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'bug'); + cy.contains('Base type: Observation') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'eye'); + cy.contains('Base type: Practitioner') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'doctor'); + cy.contains('Base type: Encounter') + .children('div') + .should('have.class', 'content') + .children('div') + .should('have.class', 'description') + .children('div') + .should('have.id', 'homepage__card-description') + .children('i') + .should('have.class', 'clipboard'); + }); + + it('toggles between grid and list views', () => { + cy.get('.ui.card').should('exist'); + cy.get('.sortable-table').should('not.exist'); + cy.get('.header__controls-view') + .children('i') + .get('.list') + .click(); + cy.get('.ui.card').should('not.exist'); + cy.get('.homepage') + .children('div') + .should('have.class', 'sortable-table'); + }); +}); diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js new file mode 100644 index 0000000..aa9918d --- /dev/null +++ b/cypress/plugins/index.js @@ -0,0 +1,21 @@ +/// +// *********************************************************** +// This example plugins/index.js can be used to load plugins +// +// You can change the location of this file or turn off loading +// the plugins file with the 'pluginsFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/plugins-guide +// *********************************************************** + +// This function is called when a project is opened or re-opened (e.g. due to +// the project's config changing) + +/** + * @type {Cypress.PluginConfig} + */ +module.exports = (on, config) => { + // `on` is used to hook into various events Cypress emits + // `config` is the resolved Cypress config +} diff --git a/cypress/support/commands.js b/cypress/support/commands.js new file mode 100644 index 0000000..72b931a --- /dev/null +++ b/cypress/support/commands.js @@ -0,0 +1,30 @@ +// *********************************************** +// This example commands.js shows you how to +// create various custom commands and overwrite +// existing commands. +// +// For more comprehensive examples of custom +// commands please read more here: +// https://on.cypress.io/custom-commands +// *********************************************** +// +// +// -- This is a parent command -- +// Cypress.Commands.add("login", (email, password) => { ... }) +// +// +// -- This is a child command -- +// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) +// +// +// -- This is a dual command -- +// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) +// +// +// -- This will overwrite an existing command -- +// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) +// +// Delete window.fetch on every window load +Cypress.on('window:before:load', win => { + delete win.fetch; +}); diff --git a/cypress/support/index.js b/cypress/support/index.js new file mode 100644 index 0000000..d68db96 --- /dev/null +++ b/cypress/support/index.js @@ -0,0 +1,20 @@ +// *********************************************************** +// This example support/index.js is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands' + +// Alternatively you can use CommonJS syntax: +// require('./commands') diff --git a/package-lock.json b/package-lock.json index 67273ff..08ed658 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1143,6 +1143,144 @@ "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-10.1.0.tgz", "integrity": "sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg==" }, + "@cypress/listr-verbose-renderer": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@cypress/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz", + "integrity": "sha1-p3SS9LEdzHxEajSz4ochr9M8ZCo=", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "cli-cursor": "^1.0.2", + "date-fns": "^1.27.2", + "figures": "^1.7.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "cli-cursor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", + "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=", + "dev": true, + "requires": { + "restore-cursor": "^1.0.1" + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "onetime": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", + "dev": true + }, + "restore-cursor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", + "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=", + "dev": true, + "requires": { + "exit-hook": "^1.0.0", + "onetime": "^1.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "@cypress/request": { + "version": "2.88.5", + "resolved": "https://registry.npmjs.org/@cypress/request/-/request-2.88.5.tgz", + "integrity": "sha512-TzEC1XMi1hJkywWpRfD2clreTa/Z+lOrXDCxxBTBPEcY5azdPi56A6Xw+O4tWJnaJH3iIE7G5aDXZC6JgRZLcA==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "@cypress/xvfb": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz", + "integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==", + "dev": true, + "requires": { + "debug": "^3.1.0", + "lodash.once": "^4.1.1" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, "@hapi/address": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", @@ -1398,6 +1536,15 @@ "resolved": "https://registry.npmjs.org/@restart/hooks/-/hooks-0.3.20.tgz", "integrity": "sha512-Q1eeEqcxHQ4oqty7C5Me8/hzWwdCRR643nR/6EHxv8BVxLVYHe4IoWAHg8MIGkE4VtSm3/JnNhkoLJhCkLx5aw==" }, + "@samverschueren/stream-to-observable": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz", + "integrity": "sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg==", + "dev": true, + "requires": { + "any-observable": "^0.3.0" + } + }, "@semantic-ui-react/event-stack": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@semantic-ui-react/event-stack/-/event-stack-3.1.1.tgz", @@ -1621,6 +1768,34 @@ "@babel/types": "^7.3.0" } }, + "@types/blob-util": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@types/blob-util/-/blob-util-1.3.3.tgz", + "integrity": "sha512-4ahcL/QDnpjWA2Qs16ZMQif7HjGP2cw3AGjHabybjw7Vm1EKu+cfQN1D78BaZbS1WJNa1opSMF5HNMztx7lR0w==", + "dev": true + }, + "@types/bluebird": { + "version": "3.5.29", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.29.tgz", + "integrity": "sha512-kmVtnxTuUuhCET669irqQmPAez4KFnFVKvpleVRyfC3g+SHD1hIkFZcWLim9BVcwUBLO59o8VZE4yGCmTif8Yw==", + "dev": true + }, + "@types/chai": { + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.2.7.tgz", + "integrity": "sha512-luq8meHGYwvky0O7u0eQZdA7B4Wd9owUCqvbw2m3XCrCU8mplYOujMBbvyS547AxJkC+pGnd0Cm15eNxEUNU8g==", + "dev": true + }, + "@types/chai-jquery": { + "version": "1.1.40", + "resolved": "https://registry.npmjs.org/@types/chai-jquery/-/chai-jquery-1.1.40.tgz", + "integrity": "sha512-mCNEZ3GKP7T7kftKeIs7QmfZZQM7hslGSpYzKbOlR2a2HCFf9ph4nlMRA9UnuOETeOQYJVhJQK7MwGqNZVyUtQ==", + "dev": true, + "requires": { + "@types/chai": "*", + "@types/jquery": "*" + } + }, "@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", @@ -1668,11 +1843,26 @@ "@types/istanbul-lib-report": "*" } }, + "@types/jquery": { + "version": "3.3.31", + "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.3.31.tgz", + "integrity": "sha512-Lz4BAJihoFw5nRzKvg4nawXPzutkv7wmfQ5121avptaSIXlDNJCUuxZxX/G+9EVidZGuO0UBlk+YjKbwRKJigg==", + "dev": true, + "requires": { + "@types/sizzle": "*" + } + }, "@types/json-schema": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz", "integrity": "sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==" }, + "@types/lodash": { + "version": "4.14.149", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.149.tgz", + "integrity": "sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ==", + "dev": true + }, "@types/minimatch": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", @@ -1683,6 +1873,12 @@ "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=" }, + "@types/mocha": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.7.tgz", + "integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==", + "dev": true + }, "@types/node": { "version": "13.5.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-13.5.0.tgz", @@ -1725,6 +1921,28 @@ "@types/react": "*" } }, + "@types/sinon": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-7.5.1.tgz", + "integrity": "sha512-EZQUP3hSZQyTQRfiLqelC9NMWd1kqLcmQE0dMiklxBkgi84T+cHOhnKpgk4NnOWpGX863yE6+IaGnOXUNFqDnQ==", + "dev": true + }, + "@types/sinon-chai": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-3.2.3.tgz", + "integrity": "sha512-TOUFS6vqS0PVL1I8NGVSNcFaNJtFoyZPXZ5zur+qlhDfOmQECZZM4H4kKgca6O8L+QceX/ymODZASfUfn+y4yQ==", + "dev": true, + "requires": { + "@types/chai": "*", + "@types/sinon": "*" + } + }, + "@types/sizzle": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.2.tgz", + "integrity": "sha512-7EJYyKTL7tFR8+gDbB6Wwz/arpGa0Mywk1TJbNzKzHtzbwVmY4HR9WqS5VV7dsBUKQmPNr192jHr/VpBluj/hg==", + "dev": true + }, "@types/stack-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", @@ -2156,6 +2374,12 @@ "color-convert": "^1.9.0" } }, + "any-observable": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/any-observable/-/any-observable-0.3.0.tgz", + "integrity": "sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog==", + "dev": true + }, "anymatch": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", @@ -2170,6 +2394,12 @@ "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" }, + "arch": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/arch/-/arch-2.1.1.tgz", + "integrity": "sha512-BLM56aPo9vLLFVa8+/+pJLnrZ7QGGTVHWsCwieAWT9o9K8UeGaQbzZbGoabWLOo2ksBCztoXdqBZBplqLDDCSg==", + "dev": true + }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -3144,6 +3374,12 @@ "isarray": "^1.0.0" } }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "dev": true + }, "buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", @@ -3220,6 +3456,12 @@ "unset-value": "^1.0.0" } }, + "cachedir": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz", + "integrity": "sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw==", + "dev": true + }, "call-me-maybe": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", @@ -3349,6 +3591,12 @@ "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", "integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=" }, + "check-more-types": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", + "integrity": "sha1-FCD/sQ/URNz8ebQ4kbv//TKoRgA=", + "dev": true + }, "chokidar": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.1.tgz", @@ -3483,6 +3731,103 @@ "restore-cursor": "^3.1.0" } }, + "cli-table3": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", + "integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==", + "dev": true, + "requires": { + "colors": "^1.1.2", + "object-assign": "^4.1.0", + "string-width": "^2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "cli-truncate": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-0.2.1.tgz", + "integrity": "sha1-nxXPuwcFAFNpIWxiasfQWrkN1XQ=", + "dev": true, + "requires": { + "slice-ansi": "0.0.4", + "string-width": "^1.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "slice-ansi": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz", + "integrity": "sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU=", + "dev": true + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, "cli-width": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", @@ -3617,6 +3962,13 @@ "simple-swizzle": "^0.2.2" } }, + "colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "dev": true, + "optional": true + }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -4171,6 +4523,98 @@ "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=" }, + "cypress": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-4.5.0.tgz", + "integrity": "sha512-2A4g5FW5d2fHzq8HKUGAMVTnW6P8nlWYQALiCoGN4bqBLvgwhYM/oG9oKc2CS6LnvgHFiKivKzpm9sfk3uU3zQ==", + "dev": true, + "requires": { + "@cypress/listr-verbose-renderer": "0.4.1", + "@cypress/request": "2.88.5", + "@cypress/xvfb": "1.2.4", + "@types/blob-util": "1.3.3", + "@types/bluebird": "3.5.29", + "@types/chai": "4.2.7", + "@types/chai-jquery": "1.1.40", + "@types/jquery": "3.3.31", + "@types/lodash": "4.14.149", + "@types/minimatch": "3.0.3", + "@types/mocha": "5.2.7", + "@types/sinon": "7.5.1", + "@types/sinon-chai": "3.2.3", + "@types/sizzle": "2.3.2", + "arch": "2.1.1", + "bluebird": "3.7.2", + "cachedir": "2.3.0", + "chalk": "2.4.2", + "check-more-types": "2.24.0", + "cli-table3": "0.5.1", + "commander": "4.1.0", + "common-tags": "1.8.0", + "debug": "4.1.1", + "eventemitter2": "4.1.2", + "execa": "1.0.0", + "executable": "4.1.1", + "extract-zip": "1.7.0", + "fs-extra": "8.1.0", + "getos": "3.1.4", + "is-ci": "2.0.0", + "is-installed-globally": "0.1.0", + "lazy-ass": "1.6.0", + "listr": "0.14.3", + "lodash": "4.17.15", + "log-symbols": "3.0.0", + "minimist": "1.2.5", + "moment": "2.24.0", + "ospath": "1.2.2", + "pretty-bytes": "5.3.0", + "ramda": "0.26.1", + "request-progress": "3.0.0", + "supports-color": "7.1.0", + "tmp": "0.1.0", + "untildify": "4.0.0", + "url": "0.11.0", + "yauzl": "2.10.0" + }, + "dependencies": { + "commander": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.0.tgz", + "integrity": "sha512-NIQrwvv9V39FHgGFm36+U9SMQzbiHvU79k+iADraJTpmrFFfx7Ds0IvDoAdZsDrknlkRk14OYoWXb57uTh7/sw==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "supports-color": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "tmp": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.1.0.tgz", + "integrity": "sha512-J7Z2K08jbGcdA1kkQpJSqLF6T0tdQqpR2pnSUXsIchbPdTI9v3e85cLW0d6WDhwuAleOV71j2xWs8qMPfK7nKw==", + "dev": true, + "requires": { + "rimraf": "^2.6.3" + } + } + } + }, "d": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", @@ -4276,6 +4720,12 @@ } } }, + "date-fns": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz", + "integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==", + "dev": true + }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", @@ -4703,6 +5153,12 @@ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.340.tgz", "integrity": "sha512-hRFBAglhcj5iVYH+o8QU0+XId1WGoc0VGowJB1cuJAt3exHGrivZvWeAO5BRgBZqwZtwxjm8a5MQeGoT/Su3ww==" }, + "elegant-spinner": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-1.0.1.tgz", + "integrity": "sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4=", + "dev": true + }, "elliptic": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz", @@ -5378,6 +5834,12 @@ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" }, + "eventemitter2": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-4.1.2.tgz", + "integrity": "sha1-DhqEd6+CGm7zmVsxG/dMI6UkfxU=", + "dev": true + }, "eventemitter3": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.0.tgz", @@ -5432,6 +5894,23 @@ "clone-regexp": "^2.1.0" } }, + "executable": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz", + "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==", + "dev": true, + "requires": { + "pify": "^2.2.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, "exenv": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz", @@ -5442,6 +5921,12 @@ "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=" }, + "exit-hook": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", + "integrity": "sha1-8FyiM7SMBdVP/wd2XfhQfpXAL/g=", + "dev": true + }, "expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", @@ -5675,6 +6160,50 @@ } } }, + "extract-zip": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz", + "integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==", + "dev": true, + "requires": { + "concat-stream": "^1.6.2", + "debug": "^2.6.9", + "mkdirp": "^0.5.4", + "yauzl": "^2.10.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", @@ -5790,6 +6319,15 @@ } } }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", + "dev": true, + "requires": { + "pend": "~1.2.0" + } + }, "figgy-pudding": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", @@ -6187,6 +6725,23 @@ "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" }, + "getos": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/getos/-/getos-3.1.4.tgz", + "integrity": "sha512-UORPzguEB/7UG5hqiZai8f0vQ7hzynMQyJLxStoQ8dPGAcmgsfXOPA4iE/fGtweHYkK+z4zc9V0g+CIFRf5HYw==", + "dev": true, + "requires": { + "async": "^3.1.0" + }, + "dependencies": { + "async": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.0.tgz", + "integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==", + "dev": true + } + } + }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -6221,6 +6776,15 @@ "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz", "integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=" }, + "global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", + "dev": true, + "requires": { + "ini": "^1.3.4" + } + }, "global-modules": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", @@ -7024,6 +7588,27 @@ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==" }, + "is-installed-globally": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", + "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", + "dev": true, + "requires": { + "global-dirs": "^0.1.0", + "is-path-inside": "^1.0.0" + }, + "dependencies": { + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "dev": true, + "requires": { + "path-is-inside": "^1.0.1" + } + } + } + }, "is-number": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", @@ -7037,6 +7622,15 @@ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=" }, + "is-observable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz", + "integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==", + "dev": true, + "requires": { + "symbol-observable": "^1.1.0" + } + }, "is-path-cwd": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", @@ -8506,6 +9100,12 @@ "webpack-sources": "^1.1.0" } }, + "lazy-ass": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", + "integrity": "sha1-eZllXoZGwX8In90YfRUNMyTVRRM=", + "dev": true + }, "lazy-cache": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", @@ -8551,6 +9151,177 @@ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" }, + "listr": { + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/listr/-/listr-0.14.3.tgz", + "integrity": "sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA==", + "dev": true, + "requires": { + "@samverschueren/stream-to-observable": "^0.3.0", + "is-observable": "^1.1.0", + "is-promise": "^2.1.0", + "is-stream": "^1.1.0", + "listr-silent-renderer": "^1.1.1", + "listr-update-renderer": "^0.5.0", + "listr-verbose-renderer": "^0.5.0", + "p-map": "^2.0.0", + "rxjs": "^6.3.3" + }, + "dependencies": { + "p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true + } + } + }, + "listr-silent-renderer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz", + "integrity": "sha1-kktaN1cVN3C/Go4/v3S4u/P5JC4=", + "dev": true + }, + "listr-update-renderer": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/listr-update-renderer/-/listr-update-renderer-0.5.0.tgz", + "integrity": "sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA==", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "cli-truncate": "^0.2.1", + "elegant-spinner": "^1.0.1", + "figures": "^1.7.0", + "indent-string": "^3.0.0", + "log-symbols": "^1.0.2", + "log-update": "^2.3.0", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "log-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", + "integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=", + "dev": true, + "requires": { + "chalk": "^1.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "listr-verbose-renderer": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/listr-verbose-renderer/-/listr-verbose-renderer-0.5.0.tgz", + "integrity": "sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "cli-cursor": "^2.1.0", + "date-fns": "^1.27.2", + "figures": "^2.0.0" + }, + "dependencies": { + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "dev": true, + "requires": { + "restore-cursor": "^2.0.0" + } + }, + "figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + } + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "dev": true, + "requires": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + } + } + } + }, "load-json-file": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", @@ -8672,6 +9443,12 @@ "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=" }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=", + "dev": true + }, "lodash.sortby": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", @@ -8707,6 +9484,100 @@ "chalk": "^2.4.2" } }, + "log-update": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-2.3.0.tgz", + "integrity": "sha1-iDKP19HOeTiykoN0bwsbwSayRwg=", + "dev": true, + "requires": { + "ansi-escapes": "^3.0.0", + "cli-cursor": "^2.0.0", + "wrap-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "dev": true + }, + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "dev": true, + "requires": { + "restore-cursor": "^2.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + } + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "dev": true, + "requires": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "wrap-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-3.0.1.tgz", + "integrity": "sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo=", + "dev": true, + "requires": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0" + } + } + } + }, "loglevel": { "version": "1.6.7", "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.7.tgz", @@ -9270,6 +10141,12 @@ } } }, + "moment": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", + "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==", + "dev": true + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", @@ -9825,6 +10702,12 @@ "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" }, + "ospath": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz", + "integrity": "sha1-EnZjl3Sj+O8lcvf+QoDg6kVQwHs=", + "dev": true + }, "p-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", @@ -10072,6 +10955,12 @@ "sha.js": "^2.4.8" } }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", + "dev": true + }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -11436,6 +12325,12 @@ "resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.2.tgz", "integrity": "sha512-VhlMZmGy6A6hrkJWHLNTGl5gtgMUm+xfGza6wbwnE914yeQ5Ybm18vgM734RZhMgfw4tacUrWseGZlpUrrakEQ==" }, + "ramda": { + "version": "0.26.1", + "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.26.1.tgz", + "integrity": "sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ==", + "dev": true + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -12433,6 +13328,15 @@ "uuid": "^3.3.2" } }, + "request-progress": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz", + "integrity": "sha1-TKdUCBx/7GP1BeT6qCWqBs1mnb4=", + "dev": true, + "requires": { + "throttleit": "^1.0.0" + } + }, "request-promise-core": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.3.tgz", @@ -14201,6 +15105,12 @@ "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=" }, + "throttleit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz", + "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=", + "dev": true + }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -14638,6 +15548,12 @@ } } }, + "untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true + }, "upath": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", @@ -16933,6 +17849,16 @@ "camelcase": "^5.0.0", "decamelize": "^1.2.0" } + }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", + "dev": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } } } } diff --git a/package.json b/package.json index 99c4c03..8900358 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "redux": "^4.0.5", "semantic-ui-css": "^2.4.1", "semantic-ui-react": "^0.88.2", - "stylelint": "^13.0.0" + "stylelint": "^13.0.0", + "whatwg-fetch": "^3.0.0" }, "scripts": { "start": "react-scripts start", @@ -32,7 +33,8 @@ "eject": "react-scripts eject", "eslint": "./node_modules/.bin/eslint './src/**/*.js'", "prettier": "./node_modules/.bin/prettier './src/**/*.js'", - "stylelint": "./node_modules/.bin/stylelint './src/**/*.css'" + "stylelint": "./node_modules/.bin/stylelint './src/**/*.css'", + "cypress:open": "cypress open" }, "browserslist": { "production": [ @@ -53,6 +55,7 @@ "bracketSpacing": false }, "devDependencies": { + "cypress": "^4.5.0", "eslint": "^6.8.0", "eslint-config-airbnb": "^18.0.1", "eslint-plugin-import": "^2.20.0", diff --git a/src/index.js b/src/index.js index 701595d..39f0298 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,7 @@ import store from './store'; import ReduxApp from './components/ReduxApp'; import 'semantic-ui-css/semantic.min.css'; import 'react-virtualized/styles.css'; +import 'whatwg-fetch'; import './index.css'; ReactDOM.render( From 6369c2e03cde81c18321e95a7074e576e7cf4138 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 14:52:16 -0500 Subject: [PATCH 20/33] :white_check_mark: Adding test for clicking on a specific resource --- cypress/fixtures/resources.json | 2 +- cypress/integration/homepage.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cypress/fixtures/resources.json b/cypress/fixtures/resources.json index a3ed311..10926e4 100644 --- a/cypress/fixtures/resources.json +++ b/cypress/fixtures/resources.json @@ -1972,7 +1972,7 @@ "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697625", "resource": { "resourceType": "StructureDefinition", - "id": "697625", + "id": "TestEncounter", "meta": { "versionId": "1", "lastUpdated": "2020-03-23T03:16:31.994+00:00", diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index 0b4083b..ac7c781 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -127,4 +127,11 @@ describe('Homepage', () => { .children('div') .should('have.class', 'sortable-table'); }); + + it('selects a resource', () => { + cy.get('.ui.card') + .contains('TestEncounter') + .click(); + cy.url().should('eq', 'http://localhost:3000/resources/TestEncounter'); + }); }); From 9bd373fd3ba9bd2a4f9c3a92c86c2ce8fa25c5e2 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 15:15:39 -0500 Subject: [PATCH 21/33] :white_check_mark: Redoing test resources --- cypress/fixtures/resources.json | 5159 +------------------------------ cypress/integration/homepage.js | 4 +- 2 files changed, 105 insertions(+), 5058 deletions(-) diff --git a/cypress/fixtures/resources.json b/cypress/fixtures/resources.json index 10926e4..aa4fb66 100644 --- a/cypress/fixtures/resources.json +++ b/cypress/fixtures/resources.json @@ -5,7 +5,7 @@ "lastUpdated": "2020-05-13T18:53:40.532+00:00" }, "type": "searchset", - "total": 123, + "total": 8, "link": [ { "relation": "self", @@ -14,19 +14,19 @@ ], "entry": [ { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/1", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestPatient", "resource": { "resourceType": "StructureDefinition", - "id": "1", + "id": "TestPatient", "meta": { "versionId": "1", "lastUpdated": "2019-09-19T09:05:12.803+00:00", "source": "#5ac66523eb8d3133" }, - "url": "http://pms-fhir.org/fhir/StructureDefinition/pmsCitizenship", - "name": "PmsCitizenship", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestPatient", + "name": "TestPatient", "status": "draft", - "description": "Structure of patient citizenship", + "description": "TestPatient", "fhirVersion": "4.0.0", "kind": "complex-type", "abstract": false, @@ -34,5155 +34,202 @@ { "type": "element", "expression": "Patient" - }, - { - "type": "element", - "expression": "Composition" } ], - "type": "Extension", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", - "derivation": "constraint", + "type": "Patient", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient", "snapshot": { - "element": [ - { - "id": "Extension", - "path": "Extension", - "short": "Optional Extensions Element", - "definition": "Optional Extension Element - found in all resources.", - "min": 0, - "max": "1", - "base": { - "path": "Extension", - "min": 0, - "max": "*" - }, - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.id", - "path": "Extension.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Extension.extension", - "path": "Extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality", - "path": "Extension.extension", - "sliceName": "nationality", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "1", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality.id", - "path": "Extension.extension.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Extension.extension:nationality.extension", - "path": "Extension.extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality.url", - "path": "Extension.extension.url", - "representation": ["xmlAttr"], - "short": "identifies the meaning of the extension", - "definition": "Source of the definition for the extension code - a logical name or a URL.", - "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", - "min": 1, - "max": "1", - "base": { - "path": "Extension.url", - "min": 1, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/regex", - "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false, - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 0, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "base64Binary" - }, - { - "code": "boolean" - }, - { - "code": "canonical" - }, - { - "code": "code" - }, - { - "code": "date" - }, - { - "code": "dateTime" - }, - { - "code": "decimal" - }, - { - "code": "id" - }, - { - "code": "instant" - }, - { - "code": "integer" - }, - { - "code": "markdown" - }, - { - "code": "oid" - }, - { - "code": "positiveInt" - }, - { - "code": "string" - }, - { - "code": "time" - }, - { - "code": "unsignedInt" - }, - { - "code": "uri" - }, - { - "code": "url" - }, - { - "code": "uuid" - }, - { - "code": "Address" - }, - { - "code": "Age" - }, - { - "code": "Annotation" - }, - { - "code": "Attachment" - }, - { - "code": "CodeableConcept" - }, - { - "code": "Coding" - }, - { - "code": "ContactPoint" - }, - { - "code": "Count" - }, - { - "code": "Distance" - }, - { - "code": "Duration" - }, - { - "code": "HumanName" - }, - { - "code": "Identifier" - }, - { - "code": "Money" - }, - { - "code": "Period" - }, - { - "code": "Quantity" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "Reference" - }, - { - "code": "SampledData" - }, - { - "code": "Signature" - }, - { - "code": "Timing" - }, - { - "code": "ContactDetail" - }, - { - "code": "Contributor" - }, - { - "code": "DataRequirement" - }, - { - "code": "Expression" - }, - { - "code": "ParameterDefinition" - }, - { - "code": "RelatedArtifact" - }, - { - "code": "TriggerDefinition" - }, - { - "code": "UsageContext" - }, - { - "code": "Dosage" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:nationality.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 1, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "string" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType", - "path": "Extension.extension", - "sliceName": "documentType", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "1", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType.id", - "path": "Extension.extension.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Extension.extension:documentType.extension", - "path": "Extension.extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType.url", - "path": "Extension.extension.url", - "representation": ["xmlAttr"], - "short": "identifies the meaning of the extension", - "definition": "Source of the definition for the extension code - a logical name or a URL.", - "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", - "min": 1, - "max": "1", - "base": { - "path": "Extension.url", - "min": 1, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/regex", - "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false, - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 0, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "base64Binary" - }, - { - "code": "boolean" - }, - { - "code": "canonical" - }, - { - "code": "code" - }, - { - "code": "date" - }, - { - "code": "dateTime" - }, - { - "code": "decimal" - }, - { - "code": "id" - }, - { - "code": "instant" - }, - { - "code": "integer" - }, - { - "code": "markdown" - }, - { - "code": "oid" - }, - { - "code": "positiveInt" - }, - { - "code": "string" - }, - { - "code": "time" - }, - { - "code": "unsignedInt" - }, - { - "code": "uri" - }, - { - "code": "url" - }, - { - "code": "uuid" - }, - { - "code": "Address" - }, - { - "code": "Age" - }, - { - "code": "Annotation" - }, - { - "code": "Attachment" - }, - { - "code": "CodeableConcept" - }, - { - "code": "Coding" - }, - { - "code": "ContactPoint" - }, - { - "code": "Count" - }, - { - "code": "Distance" - }, - { - "code": "Duration" - }, - { - "code": "HumanName" - }, - { - "code": "Identifier" - }, - { - "code": "Money" - }, - { - "code": "Period" - }, - { - "code": "Quantity" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "Reference" - }, - { - "code": "SampledData" - }, - { - "code": "Signature" - }, - { - "code": "Timing" - }, - { - "code": "ContactDetail" - }, - { - "code": "Contributor" - }, - { - "code": "DataRequirement" - }, - { - "code": "Expression" - }, - { - "code": "ParameterDefinition" - }, - { - "code": "RelatedArtifact" - }, - { - "code": "TriggerDefinition" - }, - { - "code": "UsageContext" - }, - { - "code": "Dosage" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentType.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 1, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "string" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber", - "path": "Extension.extension", - "sliceName": "documentNumber", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "1", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber.id", - "path": "Extension.extension.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Extension.extension:documentNumber.extension", - "path": "Extension.extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "ext-1", - "severity": "error", - "human": "Must have either extensions or value[x], not both", - "expression": "extension.exists() != value.exists()", - "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber.url", - "path": "Extension.extension.url", - "representation": ["xmlAttr"], - "short": "identifies the meaning of the extension", - "definition": "Source of the definition for the extension code - a logical name or a URL.", - "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", - "min": 1, - "max": "1", - "base": { - "path": "Extension.url", - "min": 1, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/regex", - "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false, - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 0, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "base64Binary" - }, - { - "code": "boolean" - }, - { - "code": "canonical" - }, - { - "code": "code" - }, - { - "code": "date" - }, - { - "code": "dateTime" - }, - { - "code": "decimal" - }, - { - "code": "id" - }, - { - "code": "instant" - }, - { - "code": "integer" - }, - { - "code": "markdown" - }, - { - "code": "oid" - }, - { - "code": "positiveInt" - }, - { - "code": "string" - }, - { - "code": "time" - }, - { - "code": "unsignedInt" - }, - { - "code": "uri" - }, - { - "code": "url" - }, - { - "code": "uuid" - }, - { - "code": "Address" - }, - { - "code": "Age" - }, - { - "code": "Annotation" - }, - { - "code": "Attachment" - }, - { - "code": "CodeableConcept" - }, - { - "code": "Coding" - }, - { - "code": "ContactPoint" - }, - { - "code": "Count" - }, - { - "code": "Distance" - }, - { - "code": "Duration" - }, - { - "code": "HumanName" - }, - { - "code": "Identifier" - }, - { - "code": "Money" - }, - { - "code": "Period" - }, - { - "code": "Quantity" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "Reference" - }, - { - "code": "SampledData" - }, - { - "code": "Signature" - }, - { - "code": "Timing" - }, - { - "code": "ContactDetail" - }, - { - "code": "Contributor" - }, - { - "code": "DataRequirement" - }, - { - "code": "Expression" - }, - { - "code": "ParameterDefinition" - }, - { - "code": "RelatedArtifact" - }, - { - "code": "TriggerDefinition" - }, - { - "code": "UsageContext" - }, - { - "code": "Dosage" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.extension:documentNumber.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 1, - "max": "1", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "string" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.url", - "path": "Extension.url", - "representation": ["xmlAttr"], - "short": "identifies the meaning of the extension", - "definition": "Source of the definition for the extension code - a logical name or a URL.", - "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", - "min": 1, - "max": "1", - "base": { - "path": "Extension.url", - "min": 1, - "max": "1" - }, - "type": [ - { - "_code": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", - "valueString": "string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", - "valueString": "xsd:string" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/regex", - "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?" - } - ] - } - } - ], - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Extension.value[x]", - "path": "Extension.value[x]", - "short": "Value of extension", - "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).", - "comment": "A stream of bytes, base64 encoded", - "min": 0, - "max": "0", - "base": { - "path": "Extension.value[x]", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "base64Binary" - }, - { - "code": "boolean" - }, - { - "code": "canonical" - }, - { - "code": "code" - }, - { - "code": "date" - }, - { - "code": "dateTime" - }, - { - "code": "decimal" - }, - { - "code": "id" - }, - { - "code": "instant" - }, - { - "code": "integer" - }, - { - "code": "markdown" - }, - { - "code": "oid" - }, - { - "code": "positiveInt" - }, - { - "code": "string" - }, - { - "code": "time" - }, - { - "code": "unsignedInt" - }, - { - "code": "uri" - }, - { - "code": "url" - }, - { - "code": "uuid" - }, - { - "code": "Address" - }, - { - "code": "Age" - }, - { - "code": "Annotation" - }, - { - "code": "Attachment" - }, - { - "code": "CodeableConcept" - }, - { - "code": "Coding" - }, - { - "code": "ContactPoint" - }, - { - "code": "Count" - }, - { - "code": "Distance" - }, - { - "code": "Duration" - }, - { - "code": "HumanName" - }, - { - "code": "Identifier" - }, - { - "code": "Money" - }, - { - "code": "Period" - }, - { - "code": "Quantity" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "Reference" - }, - { - "code": "SampledData" - }, - { - "code": "Signature" - }, - { - "code": "Timing" - }, - { - "code": "ContactDetail" - }, - { - "code": "Contributor" - }, - { - "code": "DataRequirement" - }, - { - "code": "Expression" - }, - { - "code": "ParameterDefinition" - }, - { - "code": "RelatedArtifact" - }, - { - "code": "TriggerDefinition" - }, - { - "code": "UsageContext" - }, - { - "code": "Dosage" - } - ], - "condition": ["ele-1"], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - } - ] - }, - "differential": { - "element": [ - { - "id": "Extension", - "path": "Extension", - "max": "1" - }, - { - "id": "Extension.extension", - "path": "Extension.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "rules": "open" - } - }, - { - "id": "Extension.extension:nationality", - "path": "Extension.extension", - "sliceName": "nationality", - "max": "1" - }, - { - "id": "Extension.extension:nationality.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false - }, - { - "id": "Extension.extension:nationality.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "min": 1, - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Extension.extension:documentType", - "path": "Extension.extension", - "sliceName": "documentType", - "max": "1" - }, - { - "id": "Extension.extension:documentType.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false - }, - { - "id": "Extension.extension:documentType.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "min": 1, - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Extension.extension:documentNumber", - "path": "Extension.extension", - "sliceName": "documentNumber", - "max": "1" - }, - { - "id": "Extension.extension:documentNumber.value[x]:valueString", - "path": "Extension.extension.value[x]", - "sliceName": "valueString", - "sliceIsConstraining": false - }, - { - "id": "Extension.extension:documentNumber.value[x]:valueString", - "path": "Extension.extension.valueString", - "sliceName": "valueString", - "min": 1, - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Extension.value[x]", - "path": "Extension.value[x]", - "max": "0" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/619087", - "resource": { - "resourceType": "StructureDefinition", - "id": "619087", - "meta": { - "versionId": "6", - "lastUpdated": "2020-02-10T19:51:23.903+00:00", - "source": "#Y1V9dg0PSNL59Txf" - }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/619087", - "name": "BloodPressure", - "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Observation", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Observation", - "path": "Observation", - "short": "Vérnyomás profil", - "definition": "Vérnyomás profil, bal-, jobb kar, szisztolés, diasztolés" - }, - { - "id": "Observation.identifier.system", - "path": "Observation.identifier.system", - "min": 1 - }, - { - "id": "Observation.identifier.value", - "path": "Observation.identifier.value", - "min": 1 - }, - { - "id": "Observation.code.coding", - "path": "Observation.code.coding", - "max": "1" - }, - { - "id": "Observation.code.coding.code", - "path": "Observation.code.coding.code", - "fixedCode": "85354-9" - }, - { - "id": "Observation.subject", - "path": "Observation.subject", - "min": 1, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Patient" - ] - } - ] - }, - { - "id": "Observation.effective[x]:effectiveDateTime", - "path": "Observation.effectiveDateTime", - "sliceName": "effectiveDateTime", - "short": "Mintevétel ideje", - "min": 1, - "type": [ - { - "code": "dateTime" - } - ] - }, - { - "id": "Observation.value[x]", - "path": "Observation.value[x]", - "max": "0" - }, - { - "id": "Observation.component", - "path": "Observation.component", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "code.coding.code" - } - ], - "rules": "open" - } - }, - { - "id": "Observation.component:Systolic", - "path": "Observation.component", - "sliceName": "Systolic", - "label": "Szisztolés", - "min": 1, - "max": "1" - }, - { - "id": "Observation.component:Systolic.code.coding.system", - "path": "Observation.component.code.coding.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Observation.component:Systolic.code.coding.code", - "path": "Observation.component.code.coding.code", - "fixedCode": "8480-6" - }, - { - "id": "Observation.component:Systolic.value[x]:valueQuantity", - "path": "Observation.component.valueQuantity", - "sliceName": "valueQuantity", - "min": 1, - "type": [ - { - "code": "Quantity" - } - ] - }, - { - "id": "Observation.component:Systolic.value[x]:valueQuantity.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.component.valueQuantity.unit", - "min": 1, - "fixedString": "mm[Hg]" - }, - { - "id": "Observation.component:Systolic.value[x]:valueQuantity.system", - "path": "Observation.component.valueQuantity.system", - "min": 1, - "fixedUri": "http://unitsofmeasure.org" - }, - { - "id": "Observation.component:Diastolic", - "path": "Observation.component", - "sliceName": "Diastolic", - "label": "Diasztolés", - "min": 1, - "max": "1" - }, - { - "id": "Observation.component:Diastolic.code.coding.code", - "path": "Observation.component.code.coding.code", - "fixedCode": "8462-4" - }, - { - "id": "Observation.component:Diastolic.value[x]:valueQuantity", - "path": "Observation.component.valueQuantity", - "sliceName": "valueQuantity", - "min": 1, - "type": [ - { - "code": "Quantity" - } - ] - }, - { - "id": "Observation.component:Diastolic.value[x]:valueQuantity.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.component.valueQuantity.unit", - "min": 1, - "fixedString": "mm[Hg]" - }, - { - "id": "Observation.component:Diastolic.value[x]:valueQuantity.system", - "path": "Observation.component.valueQuantity.system", - "min": 1, - "fixedUri": "http://unitsofmeasure.org" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/structuredefinition", - "resource": { - "resourceType": "StructureDefinition", - "id": "structuredefinition", - "meta": { - "versionId": "1", - "lastUpdated": "2019-09-23T05:56:25.110+00:00", - "source": "#b7904edd144c75d2" - }, - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition", - "name": "StructureDefinitionSleep", - "status": "draft", - "date": "2019-08-21", - "kind": "resource", - "abstract": true - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697625", - "resource": { - "resourceType": "StructureDefinition", - "id": "TestEncounter", - "meta": { - "versionId": "1", - "lastUpdated": "2020-03-23T03:16:31.994+00:00", - "source": "#1aQ03bcu7wC09AvJ" - }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient3", - "name": "TestEncounter", - "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Encounter", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient2", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] + "element": [] } - }, - "search": { - "mode": "match" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697626", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestSpecimen", "resource": { "resourceType": "StructureDefinition", - "id": "697626", + "id": "TestSpecimen", "meta": { "versionId": "1", - "lastUpdated": "2020-03-23T03:16:49.726+00:00", - "source": "#JfS3mOrpkCfkEHZX" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient4", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestSpecimen", "name": "TestSpecimen", "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", + "description": "TestSpecimen", + "fhirVersion": "4.0.0", + "kind": "complex-type", "abstract": false, + "context": [ + { + "type": "element", + "expression": "Specimen" + } + ], "type": "Specimen", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient3", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] - } - }, - "search": { - "mode": "match" + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Specimen" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697623", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestGroup", "resource": { "resourceType": "StructureDefinition", - "id": "697623", + "id": "TestGroup", "meta": { "versionId": "1", - "lastUpdated": "2020-03-23T03:13:14.988+00:00", - "source": "#B7YNDXX9geGPTmHk" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient1", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestGroup", "name": "TestGroup", "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Group", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697624", - "resource": { - "resourceType": "StructureDefinition", - "id": "697624", - "meta": { - "versionId": "1", - "lastUpdated": "2020-03-23T03:14:13.142+00:00", - "source": "#eqBsP5F2whb0EzFA" - }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient2", - "name": "TestCondition", - "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Condition", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient1", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697215", - "resource": { - "resourceType": "StructureDefinition", - "id": "697215", - "meta": { - "versionId": "2", - "lastUpdated": "2020-03-23T03:27:39.407+00:00", - "source": "#XrgHxgeriZdTbdtB" - }, - "url": "http://hapi.fhir.org/baseR4/StructureDefinition/DemoPatient", - "name": "DemoPatient", - "status": "draft", - "date": "2019-05-18T18:18:51.2354472Z", - "publisher": "Freisleben Attila", - "description": "Vérnyomás profil", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "type": "Patient", - "baseDefinition": "http://hapi.fhir.org/baseR4/StructureDefinition/Patient", - "derivation": "constraint", - "snapshot": { - "element": [ - { - "id": "Patient", - "path": "Patient", - "short": "Information about an individual or animal receiving health care services", - "definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.", - "alias": ["SubjectOfCare Client Resident"], - "min": 0, - "max": "*", - "base": { - "path": "Patient", - "min": 0, - "max": "*" - }, - "constraint": [ - { - "key": "dom-2", - "severity": "error", - "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", - "expression": "contained.contained.empty()", - "xpath": "not(parent::f:contained and f:contained)", - "source": "DomainResource" - }, - { - "key": "dom-4", - "severity": "error", - "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", - "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", - "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", - "source": "DomainResource" - }, - { - "key": "dom-3", - "severity": "error", - "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", - "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", - "xpath": "not(exists(for $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", - "source": "DomainResource" - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", - "valueBoolean": true - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", - "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." - } - ], - "key": "dom-6", - "severity": "warning", - "human": "A resource should have narrative for robust management", - "expression": "text.div.exists()", - "xpath": "exists(f:text/h:div)", - "source": "DomainResource" - }, - { - "key": "dom-5", - "severity": "error", - "human": "If a resource is contained in another resource, it SHALL NOT have a security label", - "expression": "contained.meta.security.empty()", - "xpath": "not(exists(f:contained/*/f:meta/f:security))", - "source": "DomainResource" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "Entity. Role, or Act" - }, - { - "identity": "rim", - "map": "Patient[classCode=PAT]" - }, - { - "identity": "cda", - "map": "ClinicalDocument.recordTarget.patientRole" - } - ] - }, - { - "id": "Patient.id", - "path": "Patient.id", - "short": "Logical id of this artifact", - "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", - "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", - "min": 0, - "max": "1", - "base": { - "path": "Resource.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "id" - } - ], - "isModifier": false, - "isSummary": true - }, - { - "id": "Patient.implicitRules", - "path": "Patient.implicitRules", - "short": "A set of rules under which this content was created", - "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.", - "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", - "min": 0, - "max": "1", - "base": { - "path": "Resource.implicitRules", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "uri" - } - ], - "isModifier": true, - "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", - "isSummary": true - }, - { - "id": "Patient.language", - "path": "Patient.language", - "short": "Language of the resource content", - "definition": "The base language in which the resource is written.", - "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", - "min": 0, - "max": "1", - "base": { - "path": "Resource.language", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", - "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "Language" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "preferred", - "description": "A human language.", - "valueSet": "http://hl7.org/fhir/ValueSet/languages" - } - }, - { - "id": "Patient.racee", - "path": "Patient.racee", - "short": "Race of the patient", - "definition": "Race", - "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", - "min": 0, - "max": "1", - "base": { - "path": "Resource.racee", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "strength": "preferred", - "description": "A human language.", - "valueSet": "http://hl7.org/fhir/ValueSet/languages" - } - }, - { - "id": "Patient.text", - "path": "Patient.text", - "short": "Text summary of the resource, for human interpretation", - "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.", - "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", - "alias": ["narrative", "html", "xhtml", "display"], - "min": 0, - "max": "1", - "base": { - "path": "DomainResource.text", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Narrative" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "Act.text?" - } - ] - }, - { - "id": "Patient.contained", - "path": "Patient.contained", - "short": "Contained, inline Resources", - "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.", - "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", - "alias": [ - "inline resources", - "anonymous resources", - "contained resources" - ], - "min": 0, - "max": "*", - "base": { - "path": "DomainResource.contained", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Resource" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.extension", - "path": "Patient.extension", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "DomainResource.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.modifierExtension", - "path": "Patient.modifierExtension", - "short": "Extensions that cannot be ignored", - "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).", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "DomainResource.modifierExtension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": true, - "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "short": "An identifier for this patient", - "definition": "An identifier for this patient.", - "requirements": "Patients are almost always assigned specific numerical identifiers.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.identifier", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Identifier" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "w5", - "map": "FiveWs.identifier" - }, - { - "identity": "v2", - "map": "PID-3" - }, - { - "identity": "rim", - "map": "id" - }, - { - "identity": "cda", - "map": ".id" - } - ] - }, - { - "id": "Patient.active", - "path": "Patient.active", - "short": "Whether this patient's record is in active use", - "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.", - "comment": "If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.", - "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.active", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "boolean" - } - ], - "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element", - "isModifier": true, - "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid", - "isSummary": true, - "mapping": [ - { - "identity": "w5", - "map": "FiveWs.status" - }, - { - "identity": "rim", - "map": "statusCode" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.name", - "path": "Patient.name", - "short": "A name associated with the patient", - "definition": "A name associated with the individual.", - "comment": "A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.", - "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.name", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "HumanName" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-5, PID-9" - }, - { - "identity": "rim", - "map": "name" - }, - { - "identity": "cda", - "map": ".patient.name" - } - ] - }, - { - "id": "Patient.telecom", - "path": "Patient.telecom", - "short": "A contact detail for the individual", - "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.", - "comment": "A Patient may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and also to help with identification. The address might not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).", - "requirements": "People have (primary) ways to contact them in some way such as phone, email.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.telecom", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "ContactPoint" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-13, PID-14, PID-40" - }, - { - "identity": "rim", - "map": "telecom" - }, - { - "identity": "cda", - "map": ".telecom" - } - ] - }, - { - "id": "Patient.gender", - "path": "Patient.gender", - "short": "male | female | other | unknown", - "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.", - "comment": "The gender might not match the biological sex as determined by genetics or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than male and female, though the vast majority of systems and contexts only support male and female. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, social, etc.) However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice. Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosomal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error. See the Patient Gender and Sex section for additional information about communicating patient gender and sex.", - "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.gender", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "AdministrativeGender" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "required", - "description": "The gender of a person used for administrative purposes.", - "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0" - }, - "mapping": [ - { - "identity": "v2", - "map": "PID-8" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" - }, - { - "identity": "cda", - "map": ".patient.administrativeGenderCode" - } - ] - }, - { - "id": "Patient.birthDate", - "path": "Patient.birthDate", - "short": "The date of birth for the individual", - "definition": "The date of birth for the individual.", - "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).", - "requirements": "Age of the individual drives many clinical processes.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.birthDate", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "date" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-7" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime" - }, - { - "identity": "cda", - "map": ".patient.birthTime" - }, - { - "identity": "loinc", - "map": "21112-8" - } - ] - }, - { - "id": "Patient.deceased[x]", - "path": "Patient.deceased[x]", - "short": "Indicates if the individual is deceased or not", - "definition": "Indicates if the individual is deceased or not.", - "comment": "If there's no value in the instance, it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.", - "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.deceased[x]", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "boolean" - }, - { - "code": "dateTime" - } - ], - "isModifier": true, - "isModifierReason": "This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.", - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-30 (bool) and PID-29 (datetime)" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.address", - "path": "Patient.address", - "short": "An address for the individual", - "definition": "An address for the individual.", - "comment": "Patient may have multiple addresses with different uses or applicable periods.", - "requirements": "May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.address", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Address" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-11" - }, - { - "identity": "rim", - "map": "addr" - }, - { - "identity": "cda", - "map": ".addr" - } - ] - }, - { - "id": "Patient.maritalStatus", - "path": "Patient.maritalStatus", - "short": "Marital (civil) status of a patient", - "definition": "This field contains a patient's most recent marital (civil) status.", - "requirements": "Most, if not all systems capture it.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.maritalStatus", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "CodeableConcept" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "MaritalStatus" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "extensible", - "description": "The domestic partnership status of a person.", - "valueSet": "http://hl7.org/fhir/ValueSet/marital-status" - }, - "mapping": [ - { - "identity": "v2", - "map": "PID-16" - }, - { - "identity": "rim", - "map": "player[classCode=PSN]/maritalStatusCode" - }, - { - "identity": "cda", - "map": ".patient.maritalStatusCode" - } - ] - }, - { - "id": "Patient.multipleBirth[x]", - "path": "Patient.multipleBirth[x]", - "short": "Whether patient is part of a multiple birth", - "definition": "Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).", - "comment": "Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).", - "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.multipleBirth[x]", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "boolean" - }, - { - "code": "integer" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "PID-24 (bool), PID-25 (integer)" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.photo", - "path": "Patient.photo", - "short": "Image of the patient", - "definition": "Image of the patient.", - "comment": "Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.", - "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.photo", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Attachment" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "OBX-5 - needs a profile" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", - "valueString": "Contact" - } - ], - "path": "Patient.contact", - "short": "A contact party (e.g. guardian, partner, friend) for the patient", - "definition": "A contact party (e.g. guardian, partner, friend) for the patient.", - "comment": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.", - "requirements": "Need to track people you can contact about the patient.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.contact", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "BackboneElement" - } - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div", - "source": "Element" - }, - { - "key": "pat-1", - "severity": "error", - "human": "SHALL at least contain a contact's details or a reference to an organization", - "expression": "name.exists() or telecom.exists() or address.exists() or organization.exists()", - "xpath": "exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.id", - "path": "Patient.contact.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.extension", - "path": "Patient.contact.extension", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.modifierExtension", - "path": "Patient.contact.modifierExtension", - "short": "Extensions that cannot be ignored even if unrecognized", - "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).", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", - "alias": ["extensions", "user content", "modifiers"], - "min": 0, - "max": "*", - "base": { - "path": "BackboneElement.modifierExtension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": true, - "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.contact.relationship", - "path": "Patient.contact.relationship", - "short": "The kind of relationship", - "definition": "The nature of the relationship between the patient and the contact person.", - "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.contact.relationship", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "CodeableConcept" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ContactRelationship" - } - ], - "strength": "extensible", - "description": "The nature of the relationship between a patient and a contact person for that patient.", - "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship" - }, - "mapping": [ - { - "identity": "v2", - "map": "NK1-7, NK1-3" - }, - { - "identity": "rim", - "map": "code" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.name", - "path": "Patient.contact.name", - "short": "A name associated with the contact person", - "definition": "A name associated with the contact person.", - "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.name", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "HumanName" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "NK1-2" - }, - { - "identity": "rim", - "map": "name" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.telecom", - "path": "Patient.contact.telecom", - "short": "A contact detail for the person", - "definition": "A contact detail for the person, e.g. a telephone number or an email address.", - "comment": "Contact may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.", - "requirements": "People have (primary) ways to contact them in some way such as phone, email.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.contact.telecom", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "ContactPoint" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "NK1-5, NK1-6, NK1-40" - }, - { - "identity": "rim", - "map": "telecom" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.address", - "path": "Patient.contact.address", - "short": "Address for the contact person", - "definition": "Address for the contact person.", - "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.address", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Address" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "NK1-4" - }, - { - "identity": "rim", - "map": "addr" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.gender", - "path": "Patient.contact.gender", - "short": "male | female | other | unknown", - "definition": "Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.", - "requirements": "Needed to address the person correctly.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.gender", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "AdministrativeGender" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "required", - "description": "The gender of a person used for administrative purposes.", - "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0" - }, - "mapping": [ - { - "identity": "v2", - "map": "NK1-15" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.organization", - "path": "Patient.contact.organization", - "short": "Organization that is associated with the contact", - "definition": "Organization on behalf of which the contact is acting or for which the contact is working.", - "requirements": "For guardians or business related contacts, the organization is relevant.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.organization", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Organization" - ] - } - ], - "condition": ["pat-1"], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41" - }, - { - "identity": "rim", - "map": "scoper" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.contact.period", - "path": "Patient.contact.period", - "short": "The period during which this contact person or organization is valid to be contacted relating to this patient", - "definition": "The period during which this contact person or organization is valid to be contacted relating to this patient.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.contact.period", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Period" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "effectiveTime" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.communication", - "path": "Patient.communication", - "short": "A language which may be used to communicate with the patient about his or her health", - "definition": "A language which may be used to communicate with the patient about his or her health.", - "comment": "If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations. For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.", - "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.communication", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "BackboneElement" - } - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div", - "source": "Element" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "LanguageCommunication" - }, - { - "identity": "cda", - "map": "patient.languageCommunication" - } - ] - }, - { - "id": "Patient.communication.id", - "path": "Patient.communication.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.communication.extension", - "path": "Patient.communication.extension", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.communication.modifierExtension", - "path": "Patient.communication.modifierExtension", - "short": "Extensions that cannot be ignored even if unrecognized", - "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).", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", - "alias": ["extensions", "user content", "modifiers"], - "min": 0, - "max": "*", - "base": { - "path": "BackboneElement.modifierExtension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": true, - "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.communication.language", - "path": "Patient.communication.language", - "short": "The language which can be used to communicate with the patient about his or her health", - "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.", - "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.", - "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.", - "min": 1, - "max": "1", - "base": { - "path": "Patient.communication.language", - "min": 1, - "max": "1" - }, - "type": [ - { - "code": "CodeableConcept" - } - ], - "isModifier": false, - "isSummary": false, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", - "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "Language" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", - "valueBoolean": true - } - ], - "strength": "preferred", - "description": "A human language.", - "valueSet": "http://hl7.org/fhir/ValueSet/languages" - }, - "mapping": [ - { - "identity": "v2", - "map": "PID-15, LAN-2" - }, - { - "identity": "rim", - "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" - }, - { - "identity": "cda", - "map": ".languageCode" - } - ] - }, - { - "id": "Patient.communication.preferred", - "path": "Patient.communication.preferred", - "short": "Language preference indicator", - "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).", - "comment": "This language is specifically identified for communicating healthcare information.", - "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.communication.preferred", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "boolean" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "PID-15" - }, - { - "identity": "rim", - "map": "preferenceInd" - }, - { - "identity": "cda", - "map": ".preferenceInd" - } - ] - }, - { - "id": "Patient.generalPractitioner", - "path": "Patient.generalPractitioner", - "short": "Patient's nominated primary care provider", - "definition": "Patient's nominated care provider.", - "comment": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles. It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.", - "alias": ["careProvider"], - "min": 0, - "max": "*", - "base": { - "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" - ] - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "v2", - "map": "PD1-4" - }, - { - "identity": "rim", - "map": "subjectOf.CareEvent.performer.AssignedEntity" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.managingOrganization", - "path": "Patient.managingOrganization", - "short": "Organization that is the custodian of the patient record", - "definition": "Organization that is the custodian of the patient record.", - "comment": "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).", - "requirements": "Need to know who recognizes this patient record, manages and updates it.", - "min": 0, - "max": "1", - "base": { - "path": "Patient.managingOrganization", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Organization" - ] - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "scoper" - }, - { - "identity": "cda", - "map": ".providerOrganization" - } - ] - }, - { - "id": "Patient.link", - "path": "Patient.link", - "short": "Link to another patient resource that concerns the same actual person", - "definition": "Link to another patient resource that concerns the same actual patient.", - "comment": "There is no assumption that linked patient records have mutual links.", - "requirements": "There are multiple use cases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and \n* Distribution of patient information across multiple servers.", - "min": 0, - "max": "*", - "base": { - "path": "Patient.link", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "BackboneElement" - } - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() or (children().count() > id.count())", - "xpath": "@value|f:*|h:div", - "source": "Element" - } - ], - "isModifier": true, - "isModifierReason": "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'", - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "outboundLink" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.link.id", - "path": "Patient.link.id", - "representation": ["xmlAttr"], - "short": "Unique id for inter-element referencing", - "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", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.link.extension", - "path": "Patient.link.extension", - "short": "Additional content defined by implementations", - "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.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": ["extensions", "user content"], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": false, - "isSummary": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Patient.link.modifierExtension", - "path": "Patient.link.modifierExtension", - "short": "Extensions that cannot be ignored even if unrecognized", - "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).", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", - "alias": ["extensions", "user content", "modifiers"], - "min": 0, - "max": "*", - "base": { - "path": "BackboneElement.modifierExtension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "isModifier": true, - "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Patient.link.other", - "path": "Patient.link.other", - "short": "The other patient or related person resource that the link refers to", - "definition": "The other patient resource that the link refers to.", - "comment": "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.", - "min": 1, - "max": "1", - "base": { - "path": "Patient.link.other", - "min": 1, - "max": "1" - }, - "type": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy", - "valueBoolean": false - } - ], - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Patient", - "http://hl7.org/fhir/StructureDefinition/RelatedPerson" - ] - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "v2", - "map": "PID-3, MRG-1" - }, - { - "identity": "rim", - "map": "id" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - }, - { - "id": "Patient.link.type", - "path": "Patient.link.type", - "short": "replaced-by | replaces | refer | seealso", - "definition": "The type of link between this patient resource and another patient resource.", - "min": 1, - "max": "1", - "base": { - "path": "Patient.link.type", - "min": 1, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "isModifier": false, - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "LinkType" - } - ], - "strength": "required", - "description": "The type of link between this patient resource and another patient resource.", - "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.0" - }, - "mapping": [ - { - "identity": "rim", - "map": "typeCode" - }, - { - "identity": "cda", - "map": "n/a" - } - ] - } - ] - }, - "differential": { - "element": [ - { - "id": "Patient.identifier", - "path": "Patient.identifier", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "system" - } - ], - "rules": "open" - } - }, - { - "id": "Patient.identifier:IDCard", - "path": "Patient.identifier", - "sliceName": "IDCard" - }, - { - "id": "Patient.identifier:IDCard.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - }, - { - "id": "Patient.identifier:DriveLicense", - "path": "Patient.identifier", - "sliceName": "DriveLicense" - }, - { - "id": "Patient.identifier:DriveLicense.system", - "path": "Patient.identifier.system", - "fixedUri": "http://loinc.org" - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25232", - "resource": { - "resourceType": "StructureDefinition", - "id": "25232", - "meta": { - "versionId": "1", - "lastUpdated": "2019-09-24T07:17:35.634+00:00", - "source": "#ef600769079a2dd1" - }, - "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-execute-simple-feasibility", - "version": "0.1.0", - "name": "TaskExecuteSimpleFeasibility", - "status": "active", - "date": "2019-05-21", + "description": "TestGroup", "fhirVersion": "4.0.0", - "kind": "resource", - "abstract": false, - "type": "Task", - "baseDefinition": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.instantiatesUri", - "path": "Task.instantiatesUri", - "fixedUri": "http://highmed.org/bpe/Process/executeSimpleFeasibility/1.0.0" - }, - { - "id": "Task.input", - "path": "Task.input", - "min": 4 - }, - { - "id": "Task.input:message-name", - "path": "Task.input", - "sliceName": "message-name" - }, - { - "id": "Task.input:message-name.value[x]", - "path": "Task.input.value[x]", - "fixedString": "executeSimpleFeasibilityMessage" - }, - { - "id": "Task.input:research-study", - "path": "Task.input", - "sliceName": "research-study", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:research-study.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:research-study.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/task-input" - }, - { - "id": "Task.input:research-study.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "research-study-reference" - }, - { - "id": "Task.input:research-study.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://highmed.org/fhir/StructureDefinition/highmed-research-study" - ] - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25233", - "resource": { - "resourceType": "StructureDefinition", - "id": "25233", - "meta": { - "versionId": "1", - "lastUpdated": "2019-09-24T07:18:30.536+00:00", - "source": "#3e8a9cc9745882e5" - }, - "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", - "version": "0.1.0", - "name": "TaskBase", - "status": "active", - "date": "2019-05-21", - "fhirVersion": "4.0.0", - "kind": "resource", - "abstract": true, - "type": "Task", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.instantiatesUri", - "path": "Task.instantiatesUri", - "min": 1 - }, - { - "id": "Task.intent", - "path": "Task.intent", - "fixedCode": "order" - }, - { - "id": "Task.authoredOn", - "path": "Task.authoredOn", - "min": 1 - }, - { - "id": "Task.requester", - "path": "Task.requester", - "min": 1, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://highmed.org/fhir/StructureDefinition/highmed-organization" - ] - } - ] - }, - { - "id": "Task.restriction", - "path": "Task.restriction", - "min": 1 - }, - { - "id": "Task.restriction.recipient", - "path": "Task.restriction.recipient", - "min": 1, - "max": "1", - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://highmed.org/fhir/StructureDefinition/highmed-organization" - ] - } - ] - }, - { - "id": "Task.input", - "path": "Task.input", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "type.coding.code" - } - ], - "rules": "openAtEnd" - }, - "min": 3 - }, - { - "id": "Task.input:message-name", - "path": "Task.input", - "sliceName": "message-name", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:message-name.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:message-name.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:message-name.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "message-name" - }, - { - "id": "Task.input:message-name.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Task.input:business-key", - "path": "Task.input", - "sliceName": "business-key", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:business-key.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:business-key.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:business-key.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "business-key" - }, - { - "id": "Task.input:business-key.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Task.input:correlation-key", - "path": "Task.input", - "sliceName": "correlation-key", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:correlation-key.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:correlation-key.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:correlation-key.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "correlation-key" - }, - { - "id": "Task.input:correlation-key.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - }, - { - "id": "Task.output", - "path": "Task.output", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "type.coding.code" - } - ], - "rules": "open" - } - }, - { - "id": "Task.output:error", - "path": "Task.output", - "sliceName": "error" - }, - { - "id": "Task.output:error.type.coding", - "path": "Task.output.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.output:error.type.coding.system", - "path": "Task.output.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.output:error.type.coding.code", - "path": "Task.output.type.coding.code", - "fixedCode": "error" - }, - { - "id": "Task.output:error.value[x]", - "path": "Task.output.value[x]", - "type": [ - { - "code": "string" - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/25234", - "resource": { - "resourceType": "StructureDefinition", - "id": "25234", - "meta": { - "versionId": "1", - "lastUpdated": "2019-09-24T07:19:08.993+00:00", - "source": "#20a371061d227b3c" - }, - "url": "http://highmed.org/fhir/StructureDefinition/highmed-task-execute-simple-feasibility", - "version": "0.1.0", - "name": "TaskExecuteSimpleFeasibility", - "status": "active", - "date": "2019-05-21", - "fhirVersion": "4.0.0", - "kind": "resource", + "kind": "complex-type", "abstract": false, - "type": "Task", - "baseDefinition": "http://highmed.org/fhir/StructureDefinition/highmed-task-base", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.instantiatesUri", - "path": "Task.instantiatesUri", - "fixedUri": "http://highmed.org/bpe/Process/executeSimpleFeasibility/1.0.0" - }, - { - "id": "Task.input", - "path": "Task.input", - "min": 4 - }, - { - "id": "Task.input:message-name", - "path": "Task.input", - "sliceName": "message-name" - }, - { - "id": "Task.input:message-name.value[x]", - "path": "Task.input.value[x]", - "fixedString": "executeSimpleFeasibilityMessage" - }, - { - "id": "Task.input:research-study", - "path": "Task.input", - "sliceName": "research-study", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:research-study.type.coding", - "path": "Task.input.type.coding", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:research-study.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/task-input" - }, - { - "id": "Task.input:research-study.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "research-study-reference" - }, - { - "id": "Task.input:research-study.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://highmed.org/fhir/StructureDefinition/highmed-research-study" - ] - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/697727", - "resource": { - "resourceType": "StructureDefinition", - "id": "697727", - "meta": { - "versionId": "1", - "lastUpdated": "2020-03-23T12:26:47.330+00:00", - "source": "#rKbUCnzvdd9MCZfP" - }, - "url": "https://www.ehealth.fgov.be/standards/fhir/StructureDefinition/be-eagreementmessageheader", - "name": "EAgreementMessageHeader", - "status": "draft", - "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Group" } ], - "kind": "resource", - "abstract": false, - "type": "MessageHeader", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MessageHeader", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "MessageHeader.event[x]", - "path": "MessageHeader.event[x]", - "type": [ - { - "code": "Coding" - } - ] - }, - { - "id": "MessageHeader.event[x].system", - "path": "MessageHeader.event[x].system", - "fixedUri": "https://www.mycarenet.be/fhir/CodeSystem/message-events" - } - ] - } - }, - "search": { - "mode": "match" + "type": "Group", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Group" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38344", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestCondition", "resource": { "resourceType": "StructureDefinition", - "id": "38344", + "id": "TestCondition", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:01:41.040+00:00", - "source": "#ce2ebf25197b55bb" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_List", - "name": "DL_List", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestCondition", + "name": "TestCondition", "status": "draft", + "description": "TestCondition", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, + "kind": "complex-type", + "abstract": false, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Condition" } ], - "kind": "resource", - "abstract": false, - "type": "List", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List", - "derivation": "constraint" - }, - "search": { - "mode": "match" + "type": "Condition", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38345", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestObservation", "resource": { "resourceType": "StructureDefinition", - "id": "38345", + "id": "TestObservation", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:01:58.701+00:00", - "source": "#98578a5737fafb37" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_Organization", - "name": "DL_Organization", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestObservation", + "name": "TestObservation", "status": "draft", + "description": "TestObservation", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "servd", - "uri": "http://www.omg.org/spec/ServD/1.0/", - "name": "ServD" - }, + "kind": "complex-type", + "abstract": false, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Observation" } ], - "kind": "resource", - "abstract": false, - "type": "Organization", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Organization.name", - "path": "Organization.name", - "min": 1 - }, - { - "id": "Organization.contact", - "path": "Organization.contact", - "min": 1 - } - ] - } - }, - "search": { - "mode": "match" + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38346", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestPractitioner", "resource": { "resourceType": "StructureDefinition", - "id": "38346", + "id": "TestPractitioner", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:02:18.857+00:00", - "source": "#27217fbed1898bac" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_Practitioner", - "name": "DL_Practitioner", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestPractitioner", + "name": "TestPractitioner", "status": "draft", + "description": "TestPractitioner", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "servd", - "uri": "http://www.omg.org/spec/ServD/1.0/", - "name": "ServD" - }, + "kind": "complex-type", + "abstract": false, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Practitioner" } ], - "kind": "resource", - "abstract": false, "type": "Practitioner", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Practitioner.name", - "path": "Practitioner.name", - "min": 1, - "max": "1" - }, - { - "id": "Practitioner.telecom", - "path": "Practitioner.telecom", - "min": 1, - "max": "1" - }, - { - "id": "Practitioner.telecom.system", - "path": "Practitioner.telecom.system", - "fixedCode": "email" - }, - { - "id": "Practitioner.telecom.value", - "path": "Practitioner.telecom.value", - "min": 1 - } - ] - } - }, - "search": { - "mode": "match" + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38347", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestEncounter", "resource": { "resourceType": "StructureDefinition", - "id": "38347", + "id": "TestEncounter", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:02:33.125+00:00", - "source": "#45d83081a5c76a9a" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_PractitionerRole", - "name": "DL_PractitionerRole", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestEncounter", + "name": "TestEncounter", "status": "draft", + "description": "TestEncounter", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "servd", - "uri": "http://www.omg.org/spec/ServD/1.0/", - "name": "ServD" - }, + "kind": "complex-type", + "abstract": false, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Encounter" } ], - "kind": "resource", - "abstract": false, - "type": "PractitionerRole", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "PractitionerRole.practitioner", - "path": "PractitionerRole.practitioner", - "min": 1 - }, - { - "id": "PractitionerRole.organization", - "path": "PractitionerRole.organization", - "min": 1 - }, - { - "id": "PractitionerRole.code.coding.system", - "path": "PractitionerRole.code.coding.system", - "fixedUri": "http://snomed.info/sct" - }, - { - "id": "PractitionerRole.code.coding.code", - "path": "PractitionerRole.code.coding.code", - "fixedCode": "768816002" - } - ] - } - }, - "search": { - "mode": "match" + "type": "Encounter", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter" } }, { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38348", + "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/TestTask", "resource": { "resourceType": "StructureDefinition", - "id": "38348", + "id": "TestTask", "meta": { "versionId": "1", - "lastUpdated": "2019-09-30T19:02:48.628+00:00", - "source": "#c7644bb4f9c6b42e" + "lastUpdated": "2019-09-19T09:05:12.803+00:00", + "source": "#5ac66523eb8d3133" }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_ResearchStudy", - "name": "DL_ResearchStudy", + "url": "http://hapi.fhir.org/baseR4/StructureDefinition/TestTask", + "name": "TestTask", "status": "draft", + "description": "TestTask", "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "BRIDG5.1", - "uri": "https://bridgmodel.nci.nih.gov", - "name": "BRIDG 5.1 Mapping" - }, - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "clinicaltrials-gov", - "uri": "http://clinicaltrials.gov", - "name": "ClinicalTrials.gov Mapping" - }, - { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" - } - ], - "kind": "resource", + "kind": "complex-type", "abstract": false, - "type": "ResearchStudy", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ResearchStudy", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "ResearchStudy.title", - "path": "ResearchStudy.title", - "min": 1 - }, - { - "id": "ResearchStudy.sponsor", - "path": "ResearchStudy.sponsor", - "min": 1 - }, - { - "id": "ResearchStudy.principalInvestigator", - "path": "ResearchStudy.principalInvestigator", - "min": 1 - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38349", - "resource": { - "resourceType": "StructureDefinition", - "id": "38349", - "meta": { - "versionId": "3", - "lastUpdated": "2019-10-01T00:56:17.847+00:00", - "source": "#a4ba625d6025248c" - }, - "url": "http://sirb.org/fhir/StructureDefinition/DL_Composition", - "name": "DL_Composition", - "status": "draft", - "fhirVersion": "4.0.0", - "mapping": [ - { - "identity": "workflow", - "uri": "http://hl7.org/fhir/workflow", - "name": "Workflow Pattern" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "cda", - "uri": "http://hl7.org/v3/cda", - "name": "CDA (R2)" - }, - { - "identity": "fhirdocumentreference", - "uri": "http://hl7.org/fhir/documentreference", - "name": "FHIR DocumentReference" - }, + "context": [ { - "identity": "w5", - "uri": "http://hl7.org/fhir/fivews", - "name": "FiveWs Pattern Mapping" + "type": "element", + "expression": "Task" } ], - "kind": "resource", - "abstract": false, - "type": "Composition", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Composition.section", - "path": "Composition.section", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:title", - "path": "Composition.section", - "sliceName": "title" - }, - { - "id": "Composition.section:information", - "path": "Composition.section", - "sliceName": "information" - }, - { - "id": "Composition.section:information.entry", - "path": "Composition.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:information.entry:Practitioner", - "path": "Composition.section.entry", - "sliceName": "Practitioner", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Practitioner" - ] - } - ] - }, - { - "id": "Composition.section:information.entry:Organization", - "path": "Composition.section.entry", - "sliceName": "Organization", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Organization" - ] - } - ] - }, - { - "id": "Composition.section:information.entry:ResearchStudy", - "path": "Composition.section.entry", - "sliceName": "ResearchStudy", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_ResearchStudy" - ] - } - ] - }, - { - "id": "Composition.section:relianceDetermination", - "path": "Composition.section", - "sliceName": "relianceDetermination" - }, - { - "id": "Composition.section:relianceDetermination.section", - "path": "Composition.section.section", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:relianceDetermination.section:reviewingIRB", - "path": "Composition.section.section", - "sliceName": "reviewingIRB" - }, - { - "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry", - "path": "Composition.section.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry:Organization", - "path": "Composition.section.section.entry", - "sliceName": "Organization", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Organization" - ] - } - ] - }, - { - "id": "Composition.section:relianceDetermination.section:reviewingIRB.entry:Practitioner", - "path": "Composition.section.section.entry", - "sliceName": "Practitioner", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Practitioner" - ] - } - ] - }, - { - "id": "Composition.section:relianceDetermination.section:approvedIRBList", - "path": "Composition.section.section", - "sliceName": "approvedIRBList" - }, - { - "id": "Composition.section:relianceDetermination.section:approvedIRBList.entry", - "path": "Composition.section.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:relianceDetermination.section:approvedIRBList.entry:List", - "path": "Composition.section.section.entry", - "sliceName": "List", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_List" - ] - } - ] - }, - { - "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList", - "path": "Composition.section.section", - "sliceName": "nonApprovedIRBList" - }, - { - "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList.entry", - "path": "Composition.section.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:relianceDetermination.section:nonApprovedIRBList.entry:List", - "path": "Composition.section.section.entry", - "sliceName": "List", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_List" - ] - } - ] - }, - { - "id": "Composition.section:responsibilities", - "path": "Composition.section", - "sliceName": "responsibilities" - }, - { - "id": "Composition.section:responsibilities.section", - "path": "Composition.section.section", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:responsibilities.section:overallPIResponsibilities", - "path": "Composition.section.section", - "sliceName": "overallPIResponsibilities" - }, - { - "id": "Composition.section:responsibilities.section:siteInvestigatorResponsibilities", - "path": "Composition.section.section", - "sliceName": "siteInvestigatorResponsibilities" - }, - { - "id": "Composition.section:close", - "path": "Composition.section", - "sliceName": "close" - }, - { - "id": "Composition.section:close.entry", - "path": "Composition.section.entry", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "id" - } - ], - "rules": "open" - } - }, - { - "id": "Composition.section:close.entry:organization", - "path": "Composition.section.entry", - "sliceName": "organization", - "type": [ - { - "code": "Reference", - "profile": [ - "http://sirb.org/fhir/StructureDefinition/DL_Organization" - ] - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/38905", - "resource": { - "resourceType": "StructureDefinition", - "id": "38905", - "meta": { - "versionId": "1", - "lastUpdated": "2019-10-01T10:23:46.874+00:00", - "source": "#0cc4be9be56ea7a5" - }, - "url": "http://highmed.org/fhir/StructureDefinition/BaseTask", - "name": "BaseTask", - "status": "draft", - "fhirVersion": "4.0.0", - "kind": "resource", - "abstract": false, "type": "Task", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.input", - "path": "Task.input", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "type.coding.system" - }, - { - "type": "value", - "path": "type.coding.code" - } - ], - "rules": "open" - }, - "min": 1 - }, - { - "id": "Task.input:baseInputSlice", - "path": "Task.input", - "sliceName": "baseInputSlice", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:baseInputSlice.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:baseInputSlice.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "base-input-slice" - }, - { - "id": "Task.input:baseInputSlice.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - } - ] - } - }, - "search": { - "mode": "match" - } - }, - { - "fullUrl": "http://hapi.fhir.org/baseR4/StructureDefinition/39146", - "resource": { - "resourceType": "StructureDefinition", - "id": "39146", - "meta": { - "versionId": "1", - "lastUpdated": "2019-10-01T11:22:00.829+00:00", - "source": "#2416ea9716752386" - }, - "url": "http://highmed.org/fhir/StructureDefinition/ExtendedTask", - "name": "ExtendedTask", - "status": "draft", - "fhirVersion": "4.0.0", - "kind": "resource", - "abstract": false, - "type": "Task", - "baseDefinition": "http://highmed.org/fhir/StructureDefinition/BaseTask", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Task.input", - "path": "Task.input", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "type.coding.system" - }, - { - "type": "value", - "path": "type.coding.code" - } - ], - "rules": "open" - }, - "min": 2 - }, - { - "id": "Task.input:extendedInputSlice", - "path": "Task.input", - "sliceName": "extendedInputSlice", - "min": 1, - "max": "1" - }, - { - "id": "Task.input:extendedInputSlice.type.coding.system", - "path": "Task.input.type.coding.system", - "fixedUri": "http://highmed.org/fhir/CodeSystem/bpmn-message" - }, - { - "id": "Task.input:extendedInputSlice.type.coding.code", - "path": "Task.input.type.coding.code", - "fixedCode": "extended-input-slice" - }, - { - "id": "Task.input:extendedInputSlice.value[x]", - "path": "Task.input.value[x]", - "type": [ - { - "code": "string" - } - ] - } - ] - } - }, - "search": { - "mode": "match" + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task" } } ] diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index ac7c781..983c03c 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -24,7 +24,7 @@ describe('Homepage', () => { it('loads resources', () => { cy.url().should('include', '/resources'); - cy.contains('18 total'); + cy.contains('8 total'); }); it('filters search results on input', () => { @@ -36,7 +36,7 @@ describe('Homepage', () => { it('filters results on search', () => { cy.get('.ui.card').should($x => { - expect($x).to.have.length(18); + expect($x).to.have.length(8); }); cy.get('.prompt').type('Patient'); cy.get('.ui.search>.results') From aaa4668cf0f3d3c5a046d0ef913f1044d6c2b08c Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 15:40:42 -0500 Subject: [PATCH 22/33] :white_check_mark: Updating test that always passes to be more granular --- cypress/integration/homepage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index 983c03c..c3ea059 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -29,7 +29,7 @@ describe('Homepage', () => { it('filters search results on input', () => { cy.get('.prompt').type('Pa'); - cy.get('.ui.search>.results').should($x => { + cy.get('.ui.search>.results .result').should($x => { expect($x).to.have.length(1); }); }); @@ -39,7 +39,7 @@ describe('Homepage', () => { expect($x).to.have.length(8); }); cy.get('.prompt').type('Patient'); - cy.get('.ui.search>.results') + cy.get('.ui.search>.results .result') .should($x => { expect($x).to.have.length(1); }) From b5bf7e843b2463b4d5735fc3274ae6c89abc7147 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 13 May 2020 16:32:51 -0500 Subject: [PATCH 23/33] :white_check_mark: Updating tests to use ENV var --- cypress.json | 4 +++- cypress/integration/homepage.js | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress.json b/cypress.json index 6a81f4e..e08f026 100644 --- a/cypress.json +++ b/cypress.json @@ -1,6 +1,8 @@ { "baseUrl": "http://localhost:3000", - "env": {}, + "env": { + "REACT_APP_FHIR_API": "http://hapi.fhir.org/baseR4/" + }, "video": false, "chromeWebSecurity": false } diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index c3ea059..d40af40 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -6,9 +6,7 @@ describe('Homepage', () => { url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/**', response: 'fixture:resources.json', }).as('getResources'); - cy.visit('/servers'); - cy.contains('hapi').click(); - cy.contains('Launch').click(); + cy.visit('/resources'); cy.wait('@getResources'); }); From 69d2bb24b0dfbb4f6ac38e1cefbfc985c3d562b7 Mon Sep 17 00:00:00 2001 From: Abby George Date: Mon, 18 May 2020 09:21:04 -0500 Subject: [PATCH 24/33] :bulb: Documentation for running Cypress --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d545a03..c45b57c 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,11 @@ npm start This will open up the application at `localhost:3000`. More on `create-react-app` [here](https://reactjs.org/docs/create-a-new-react-app.html). + +### Tests + +The dashboard uses [Cypress](https://www.cypress.io/) to run frontend tests. To open Cypress, use the command: + +`npm run cypress:open` + +This will pull up an interactive window for running tests. Click on any of the tests listed to run them. From 39c5ab59508a76bc546ef8792e37eda3b464cc0b Mon Sep 17 00:00:00 2001 From: Abby George Date: Mon, 18 May 2020 09:27:43 -0500 Subject: [PATCH 25/33] :bulb: Updating README to be more specific re: running tests. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c45b57c..ec76bcc 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,8 @@ More on `create-react-app` [here](https://reactjs.org/docs/create-a-new-react-ap ### Tests -The dashboard uses [Cypress](https://www.cypress.io/) to run frontend tests. To open Cypress, use the command: +The dashboard uses [Cypress](https://www.cypress.io/) and the local development server to run frontend tests. To open Cypress, use the command: `npm run cypress:open` -This will pull up an interactive window for running tests. Click on any of the tests listed to run them. +This will pull up an interactive window for running tests. You must also be running the dashboard locally at `http://localhost:3000` to run the tests. Click on any of the tests listed to execute them. From 962b7f558cdfef8256a2254c8a0bdf8efb8977cd Mon Sep 17 00:00:00 2001 From: Abby George Date: Mon, 18 May 2020 10:23:28 -0500 Subject: [PATCH 26/33] :bug: Fixing missing env variable --- src/config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index 0c59d05..5498ca4 100644 --- a/src/config.js +++ b/src/config.js @@ -5,7 +5,9 @@ export const NO_AUTH = 'NO_AUTH'; export const BASIC_AUTH = 'BASIC_AUTH'; export const getBaseUrl = () => { - let envVar = process.env.REACT_APP_FHIR_API; + let envVar = window.Cypress + ? 'http://hapi.fhir.org/baseR4/' + : process.env.REACT_APP_FHIR_API; if (envVar) { if (envVar.substring(envVar.length - 1, envVar.length) !== '/') { envVar = envVar.concat('/'); From 09b076223a0f272bf38c8a8fb1831e1930287971 Mon Sep 17 00:00:00 2001 From: Abby George Date: Tue, 19 May 2020 10:19:28 -0500 Subject: [PATCH 27/33] :recycle: Adding a folder to contain fixtures --- cypress/fixtures/{ => homepage}/resources.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename cypress/fixtures/{ => homepage}/resources.json (100%) diff --git a/cypress/fixtures/resources.json b/cypress/fixtures/homepage/resources.json similarity index 100% rename from cypress/fixtures/resources.json rename to cypress/fixtures/homepage/resources.json From 6155e61d1d6fb7cb67ef7bed3260b55c8f211e0d Mon Sep 17 00:00:00 2001 From: Abby George Date: Tue, 19 May 2020 10:27:44 -0500 Subject: [PATCH 28/33] :bug: Adding folder path to integration tests --- cypress/integration/homepage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/homepage.js b/cypress/integration/homepage.js index d40af40..d713b33 100644 --- a/cypress/integration/homepage.js +++ b/cypress/integration/homepage.js @@ -4,7 +4,7 @@ describe('Homepage', () => { cy.route({ method: 'GET', url: 'https://damp-castle-44220.herokuapp.com/http://hapi.fhir.org/**', - response: 'fixture:resources.json', + response: 'fixture:homepage/resources.json', }).as('getResources'); cy.visit('/resources'); cy.wait('@getResources'); From fb586fd89e9846a5a327f809e9d3a96a3f5f92c2 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 20 May 2020 18:49:17 -0500 Subject: [PATCH 29/33] :wrench: Adding Cypress tests to CircleCI --- .circleci/config.yml | 22 ++++++++++++++++++---- package.json | 4 ++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ea6350a..12861ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,13 @@ -version: 2 +version: 2.1 +orbs: + cypress: cypress-io/cypress@1 + jobs: build: docker: - image: circleci/node:12 - working_directory: ~/repo + working_directory: ~/rep steps: - checkout @@ -27,8 +30,8 @@ jobs: -t "kidsfirstdrc/kf-ui-fhir-data-dashboard:kidsfirst" . fi - run: - name: 'Push docker images' - command: | + name: 'Push docker images' + command: | if [ $CIRCLE_BRANCH == 'master' ]; then GIT_COMMIT=$(git rev-parse HEAD) docker login -u $KF_DOCKER_HUB_USER -p $KF_DOCKER_HUB_PW @@ -39,3 +42,14 @@ jobs: docker push kidsfirstdrc/kf-ui-fhir-data-dashboard:kidsfirst docker push kidsfirstdrc/kf-ui-fhir-data-dashboard:$GIT_COMMIT fi + +workflows: + build_and_test: + jobs: + - build + - cypress/install: + build: 'npm run build' + - cypress/run: + requires: + - cypress/install + start: 'npm start' diff --git a/package.json b/package.json index 8900358..7c50ca6 100644 --- a/package.json +++ b/package.json @@ -29,12 +29,12 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "./node_modules/.bin/mocha", "eject": "react-scripts eject", "eslint": "./node_modules/.bin/eslint './src/**/*.js'", "prettier": "./node_modules/.bin/prettier './src/**/*.js'", "stylelint": "./node_modules/.bin/stylelint './src/**/*.css'", - "cypress:open": "cypress open" + "cypress:open": "cypress open", + "cypress:run": "cypress run" }, "browserslist": { "production": [ From 93380a161bc69c0e9f5288bf89a14af77926d1ac Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 20 May 2020 18:51:20 -0500 Subject: [PATCH 30/33] :bug: Fixing CircleCI typo --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 12861ad..c11d14e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: docker: - image: circleci/node:12 - working_directory: ~/rep + working_directory: ~/repo steps: - checkout From f4d5b07872046406af1a82cd7e40966cf008c584 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 20 May 2020 18:57:38 -0500 Subject: [PATCH 31/33] :wrench: Running tests before build job --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c11d14e..85d35ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,10 +46,10 @@ jobs: workflows: build_and_test: jobs: - - build - cypress/install: build: 'npm run build' - cypress/run: requires: - cypress/install start: 'npm start' + - build From 5cf475c2ac31c7cbeef1ccfb7bd54f574c1b3b32 Mon Sep 17 00:00:00 2001 From: Abby George Date: Wed, 20 May 2020 18:59:19 -0500 Subject: [PATCH 32/33] :wrench: Requiring tests for build job --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 85d35ad..e8a5c3d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,4 +52,6 @@ workflows: requires: - cypress/install start: 'npm start' - - build + - build: + requires: + - cypress/run From 00c1121afaa0d55822ac439ff716a390544dd9d8 Mon Sep 17 00:00:00 2001 From: Abby George Date: Thu, 21 May 2020 09:38:37 -0500 Subject: [PATCH 33/33] :wrench: Running Cypress tests in Chrome --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e8a5c3d..a4dbdef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,6 +51,8 @@ workflows: - cypress/run: requires: - cypress/install + executor: cypress/browsers-chrome69 + browser: chrome start: 'npm start' - build: requires: