@medplum/mock 0.5.1 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -346,14 +346,17 @@
346
346
  valueQuantity: {
347
347
  value: 50,
348
348
  unit: 'x',
349
+ comparator: '>',
349
350
  },
350
351
  referenceRange: [
351
352
  {
352
353
  low: {
353
354
  value: 10,
355
+ unit: 'x',
354
356
  },
355
357
  high: {
356
358
  value: 50,
359
+ unit: 'x',
357
360
  },
358
361
  },
359
362
  ],
@@ -399,6 +402,13 @@
399
402
  },
400
403
  ],
401
404
  };
405
+ const HomerSimpsonSpecimen = {
406
+ resourceType: 'Specimen',
407
+ subject: core.createReference(HomerSimpson),
408
+ collection: {
409
+ collectedDateTime: '2020-01-01T12:00:00Z',
410
+ },
411
+ };
402
412
  const HomerServiceRequest = {
403
413
  resourceType: 'ServiceRequest',
404
414
  id: '123',
@@ -433,6 +443,7 @@
433
443
  text: 'ORDERED',
434
444
  },
435
445
  ],
446
+ specimen: [core.createReference(HomerSimpsonSpecimen)],
436
447
  };
437
448
  const BartSimpson = {
438
449
  resourceType: 'Patient',
@@ -5548,6 +5559,663 @@
5548
5559
  }
5549
5560
  ]
5550
5561
  }
5562
+ },
5563
+ {
5564
+ resourceType: "StructureDefinition",
5565
+ id: "Specimen",
5566
+ name: "Specimen",
5567
+ description: "A sample to be used for analysis.",
5568
+ type: "Specimen",
5569
+ snapshot: {
5570
+ element: [
5571
+ {
5572
+ id: "Specimen",
5573
+ path: "Specimen",
5574
+ definition: "A sample to be used for analysis.",
5575
+ min: 0,
5576
+ max: "*"
5577
+ },
5578
+ {
5579
+ id: "Specimen.id",
5580
+ path: "Specimen.id",
5581
+ definition: "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
5582
+ min: 0,
5583
+ max: "1",
5584
+ type: [
5585
+ {
5586
+ code: "http://hl7.org/fhirpath/System.String"
5587
+ }
5588
+ ]
5589
+ },
5590
+ {
5591
+ id: "Specimen.meta",
5592
+ path: "Specimen.meta",
5593
+ definition: "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
5594
+ min: 0,
5595
+ max: "1",
5596
+ type: [
5597
+ {
5598
+ code: "Meta"
5599
+ }
5600
+ ]
5601
+ },
5602
+ {
5603
+ id: "Specimen.implicitRules",
5604
+ path: "Specimen.implicitRules",
5605
+ 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.",
5606
+ min: 0,
5607
+ max: "1",
5608
+ type: [
5609
+ {
5610
+ code: "uri"
5611
+ }
5612
+ ]
5613
+ },
5614
+ {
5615
+ id: "Specimen.language",
5616
+ path: "Specimen.language",
5617
+ definition: "The base language in which the resource is written.",
5618
+ min: 0,
5619
+ max: "1",
5620
+ type: [
5621
+ {
5622
+ code: "code"
5623
+ }
5624
+ ],
5625
+ binding: {
5626
+ description: "A human language.",
5627
+ valueSet: "http://hl7.org/fhir/ValueSet/languages"
5628
+ }
5629
+ },
5630
+ {
5631
+ id: "Specimen.text",
5632
+ path: "Specimen.text",
5633
+ 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.",
5634
+ min: 0,
5635
+ max: "1",
5636
+ type: [
5637
+ {
5638
+ code: "Narrative"
5639
+ }
5640
+ ]
5641
+ },
5642
+ {
5643
+ id: "Specimen.contained",
5644
+ path: "Specimen.contained",
5645
+ 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.",
5646
+ min: 0,
5647
+ max: "*",
5648
+ type: [
5649
+ {
5650
+ code: "Resource"
5651
+ }
5652
+ ]
5653
+ },
5654
+ {
5655
+ id: "Specimen.extension",
5656
+ path: "Specimen.extension",
5657
+ 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.",
5658
+ min: 0,
5659
+ max: "*",
5660
+ type: [
5661
+ {
5662
+ code: "Extension"
5663
+ }
5664
+ ]
5665
+ },
5666
+ {
5667
+ id: "Specimen.modifierExtension",
5668
+ path: "Specimen.modifierExtension",
5669
+ 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).",
5670
+ min: 0,
5671
+ max: "*",
5672
+ type: [
5673
+ {
5674
+ code: "Extension"
5675
+ }
5676
+ ]
5677
+ },
5678
+ {
5679
+ id: "Specimen.identifier",
5680
+ path: "Specimen.identifier",
5681
+ definition: "Id for specimen.",
5682
+ min: 0,
5683
+ max: "*",
5684
+ type: [
5685
+ {
5686
+ code: "Identifier"
5687
+ }
5688
+ ]
5689
+ },
5690
+ {
5691
+ id: "Specimen.accessionIdentifier",
5692
+ path: "Specimen.accessionIdentifier",
5693
+ definition: "The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.",
5694
+ min: 0,
5695
+ max: "1",
5696
+ type: [
5697
+ {
5698
+ code: "Identifier"
5699
+ }
5700
+ ]
5701
+ },
5702
+ {
5703
+ id: "Specimen.status",
5704
+ path: "Specimen.status",
5705
+ definition: "The availability of the specimen.",
5706
+ min: 0,
5707
+ max: "1",
5708
+ type: [
5709
+ {
5710
+ code: "code"
5711
+ }
5712
+ ],
5713
+ binding: {
5714
+ description: "Codes providing the status/availability of a specimen.",
5715
+ valueSet: "http://hl7.org/fhir/ValueSet/specimen-status|4.0.1"
5716
+ }
5717
+ },
5718
+ {
5719
+ id: "Specimen.type",
5720
+ path: "Specimen.type",
5721
+ definition: "The kind of material that forms the specimen.",
5722
+ min: 0,
5723
+ max: "1",
5724
+ type: [
5725
+ {
5726
+ code: "CodeableConcept"
5727
+ }
5728
+ ],
5729
+ binding: {
5730
+ description: "The type of the specimen.",
5731
+ valueSet: "http://terminology.hl7.org/ValueSet/v2-0487"
5732
+ }
5733
+ },
5734
+ {
5735
+ id: "Specimen.subject",
5736
+ path: "Specimen.subject",
5737
+ definition: "Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device.",
5738
+ min: 0,
5739
+ max: "1",
5740
+ type: [
5741
+ {
5742
+ code: "Reference",
5743
+ targetProfile: [
5744
+ "http://hl7.org/fhir/StructureDefinition/Patient",
5745
+ "http://hl7.org/fhir/StructureDefinition/Group",
5746
+ "http://hl7.org/fhir/StructureDefinition/Device",
5747
+ "http://hl7.org/fhir/StructureDefinition/Substance",
5748
+ "http://hl7.org/fhir/StructureDefinition/Location"
5749
+ ]
5750
+ }
5751
+ ]
5752
+ },
5753
+ {
5754
+ id: "Specimen.receivedTime",
5755
+ path: "Specimen.receivedTime",
5756
+ definition: "Time when specimen was received for processing or testing.",
5757
+ min: 0,
5758
+ max: "1",
5759
+ type: [
5760
+ {
5761
+ code: "dateTime"
5762
+ }
5763
+ ]
5764
+ },
5765
+ {
5766
+ id: "Specimen.parent",
5767
+ path: "Specimen.parent",
5768
+ definition: "Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.",
5769
+ min: 0,
5770
+ max: "*",
5771
+ type: [
5772
+ {
5773
+ code: "Reference",
5774
+ targetProfile: [
5775
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
5776
+ ]
5777
+ }
5778
+ ]
5779
+ },
5780
+ {
5781
+ id: "Specimen.request",
5782
+ path: "Specimen.request",
5783
+ definition: "Details concerning a service request that required a specimen to be collected.",
5784
+ min: 0,
5785
+ max: "*",
5786
+ type: [
5787
+ {
5788
+ code: "Reference",
5789
+ targetProfile: [
5790
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
5791
+ ]
5792
+ }
5793
+ ]
5794
+ },
5795
+ {
5796
+ id: "Specimen.collection",
5797
+ path: "Specimen.collection",
5798
+ definition: "Details concerning the specimen collection.",
5799
+ min: 0,
5800
+ max: "1",
5801
+ type: [
5802
+ {
5803
+ code: "BackboneElement"
5804
+ }
5805
+ ]
5806
+ },
5807
+ {
5808
+ id: "Specimen.collection.id",
5809
+ path: "Specimen.collection.id",
5810
+ definition: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
5811
+ min: 0,
5812
+ max: "1",
5813
+ type: [
5814
+ {
5815
+ code: "http://hl7.org/fhirpath/System.String"
5816
+ }
5817
+ ]
5818
+ },
5819
+ {
5820
+ id: "Specimen.collection.extension",
5821
+ path: "Specimen.collection.extension",
5822
+ 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.",
5823
+ min: 0,
5824
+ max: "*",
5825
+ type: [
5826
+ {
5827
+ code: "Extension"
5828
+ }
5829
+ ]
5830
+ },
5831
+ {
5832
+ id: "Specimen.collection.modifierExtension",
5833
+ path: "Specimen.collection.modifierExtension",
5834
+ 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).",
5835
+ min: 0,
5836
+ max: "*",
5837
+ type: [
5838
+ {
5839
+ code: "Extension"
5840
+ }
5841
+ ]
5842
+ },
5843
+ {
5844
+ id: "Specimen.collection.collector",
5845
+ path: "Specimen.collection.collector",
5846
+ definition: "Person who collected the specimen.",
5847
+ min: 0,
5848
+ max: "1",
5849
+ type: [
5850
+ {
5851
+ code: "Reference",
5852
+ targetProfile: [
5853
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
5854
+ "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
5855
+ ]
5856
+ }
5857
+ ]
5858
+ },
5859
+ {
5860
+ id: "Specimen.collection.collected[x]",
5861
+ path: "Specimen.collection.collected[x]",
5862
+ definition: "Time when specimen was collected from subject - the physiologically relevant time.",
5863
+ min: 0,
5864
+ max: "1",
5865
+ type: [
5866
+ {
5867
+ code: "dateTime"
5868
+ },
5869
+ {
5870
+ code: "Period"
5871
+ }
5872
+ ]
5873
+ },
5874
+ {
5875
+ id: "Specimen.collection.duration",
5876
+ path: "Specimen.collection.duration",
5877
+ definition: "The span of time over which the collection of a specimen occurred.",
5878
+ min: 0,
5879
+ max: "1",
5880
+ type: [
5881
+ {
5882
+ code: "Duration"
5883
+ }
5884
+ ]
5885
+ },
5886
+ {
5887
+ id: "Specimen.collection.quantity",
5888
+ path: "Specimen.collection.quantity",
5889
+ definition: "The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.",
5890
+ min: 0,
5891
+ max: "1",
5892
+ type: [
5893
+ {
5894
+ code: "Quantity"
5895
+ }
5896
+ ]
5897
+ },
5898
+ {
5899
+ id: "Specimen.collection.method",
5900
+ path: "Specimen.collection.method",
5901
+ definition: "A coded value specifying the technique that is used to perform the procedure.",
5902
+ min: 0,
5903
+ max: "1",
5904
+ type: [
5905
+ {
5906
+ code: "CodeableConcept"
5907
+ }
5908
+ ],
5909
+ binding: {
5910
+ description: "The technique that is used to perform the procedure.",
5911
+ valueSet: "http://hl7.org/fhir/ValueSet/specimen-collection-method"
5912
+ }
5913
+ },
5914
+ {
5915
+ id: "Specimen.collection.bodySite",
5916
+ path: "Specimen.collection.bodySite",
5917
+ definition: "Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.",
5918
+ min: 0,
5919
+ max: "1",
5920
+ type: [
5921
+ {
5922
+ code: "CodeableConcept"
5923
+ }
5924
+ ],
5925
+ binding: {
5926
+ description: "Codes describing anatomical locations. May include laterality.",
5927
+ valueSet: "http://hl7.org/fhir/ValueSet/body-site"
5928
+ }
5929
+ },
5930
+ {
5931
+ id: "Specimen.collection.fastingStatus[x]",
5932
+ path: "Specimen.collection.fastingStatus[x]",
5933
+ definition: "Abstinence or reduction from some or all food, drink, or both, for a period of time prior to sample collection.",
5934
+ min: 0,
5935
+ max: "1",
5936
+ type: [
5937
+ {
5938
+ code: "CodeableConcept"
5939
+ },
5940
+ {
5941
+ code: "Duration"
5942
+ }
5943
+ ],
5944
+ binding: {
5945
+ description: "Codes describing the fasting status of the patient.",
5946
+ valueSet: "http://terminology.hl7.org/ValueSet/v2-0916"
5947
+ }
5948
+ },
5949
+ {
5950
+ id: "Specimen.processing",
5951
+ path: "Specimen.processing",
5952
+ definition: "Details concerning processing and processing steps for the specimen.",
5953
+ min: 0,
5954
+ max: "*",
5955
+ type: [
5956
+ {
5957
+ code: "BackboneElement"
5958
+ }
5959
+ ]
5960
+ },
5961
+ {
5962
+ id: "Specimen.processing.id",
5963
+ path: "Specimen.processing.id",
5964
+ definition: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
5965
+ min: 0,
5966
+ max: "1",
5967
+ type: [
5968
+ {
5969
+ code: "http://hl7.org/fhirpath/System.String"
5970
+ }
5971
+ ]
5972
+ },
5973
+ {
5974
+ id: "Specimen.processing.extension",
5975
+ path: "Specimen.processing.extension",
5976
+ 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.",
5977
+ min: 0,
5978
+ max: "*",
5979
+ type: [
5980
+ {
5981
+ code: "Extension"
5982
+ }
5983
+ ]
5984
+ },
5985
+ {
5986
+ id: "Specimen.processing.modifierExtension",
5987
+ path: "Specimen.processing.modifierExtension",
5988
+ 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).",
5989
+ min: 0,
5990
+ max: "*",
5991
+ type: [
5992
+ {
5993
+ code: "Extension"
5994
+ }
5995
+ ]
5996
+ },
5997
+ {
5998
+ id: "Specimen.processing.description",
5999
+ path: "Specimen.processing.description",
6000
+ definition: "Textual description of procedure.",
6001
+ min: 0,
6002
+ max: "1",
6003
+ type: [
6004
+ {
6005
+ code: "string"
6006
+ }
6007
+ ]
6008
+ },
6009
+ {
6010
+ id: "Specimen.processing.procedure",
6011
+ path: "Specimen.processing.procedure",
6012
+ definition: "A coded value specifying the procedure used to process the specimen.",
6013
+ min: 0,
6014
+ max: "1",
6015
+ type: [
6016
+ {
6017
+ code: "CodeableConcept"
6018
+ }
6019
+ ],
6020
+ binding: {
6021
+ description: "Type indicating the technique used to process the specimen.",
6022
+ valueSet: "http://hl7.org/fhir/ValueSet/specimen-processing-procedure"
6023
+ }
6024
+ },
6025
+ {
6026
+ id: "Specimen.processing.additive",
6027
+ path: "Specimen.processing.additive",
6028
+ definition: "Material used in the processing step.",
6029
+ min: 0,
6030
+ max: "*",
6031
+ type: [
6032
+ {
6033
+ code: "Reference",
6034
+ targetProfile: [
6035
+ "http://hl7.org/fhir/StructureDefinition/Substance"
6036
+ ]
6037
+ }
6038
+ ]
6039
+ },
6040
+ {
6041
+ id: "Specimen.processing.time[x]",
6042
+ path: "Specimen.processing.time[x]",
6043
+ definition: "A record of the time or period when the specimen processing occurred. For example the time of sample fixation or the period of time the sample was in formalin.",
6044
+ min: 0,
6045
+ max: "1",
6046
+ type: [
6047
+ {
6048
+ code: "dateTime"
6049
+ },
6050
+ {
6051
+ code: "Period"
6052
+ }
6053
+ ]
6054
+ },
6055
+ {
6056
+ id: "Specimen.container",
6057
+ path: "Specimen.container",
6058
+ definition: "The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.",
6059
+ min: 0,
6060
+ max: "*",
6061
+ type: [
6062
+ {
6063
+ code: "BackboneElement"
6064
+ }
6065
+ ]
6066
+ },
6067
+ {
6068
+ id: "Specimen.container.id",
6069
+ path: "Specimen.container.id",
6070
+ definition: "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
6071
+ min: 0,
6072
+ max: "1",
6073
+ type: [
6074
+ {
6075
+ code: "http://hl7.org/fhirpath/System.String"
6076
+ }
6077
+ ]
6078
+ },
6079
+ {
6080
+ id: "Specimen.container.extension",
6081
+ path: "Specimen.container.extension",
6082
+ 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.",
6083
+ min: 0,
6084
+ max: "*",
6085
+ type: [
6086
+ {
6087
+ code: "Extension"
6088
+ }
6089
+ ]
6090
+ },
6091
+ {
6092
+ id: "Specimen.container.modifierExtension",
6093
+ path: "Specimen.container.modifierExtension",
6094
+ 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).",
6095
+ min: 0,
6096
+ max: "*",
6097
+ type: [
6098
+ {
6099
+ code: "Extension"
6100
+ }
6101
+ ]
6102
+ },
6103
+ {
6104
+ id: "Specimen.container.identifier",
6105
+ path: "Specimen.container.identifier",
6106
+ definition: "Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances.",
6107
+ min: 0,
6108
+ max: "*",
6109
+ type: [
6110
+ {
6111
+ code: "Identifier"
6112
+ }
6113
+ ]
6114
+ },
6115
+ {
6116
+ id: "Specimen.container.description",
6117
+ path: "Specimen.container.description",
6118
+ definition: "Textual description of the container.",
6119
+ min: 0,
6120
+ max: "1",
6121
+ type: [
6122
+ {
6123
+ code: "string"
6124
+ }
6125
+ ]
6126
+ },
6127
+ {
6128
+ id: "Specimen.container.type",
6129
+ path: "Specimen.container.type",
6130
+ definition: "The type of container associated with the specimen (e.g. slide, aliquot, etc.).",
6131
+ min: 0,
6132
+ max: "1",
6133
+ type: [
6134
+ {
6135
+ code: "CodeableConcept"
6136
+ }
6137
+ ],
6138
+ binding: {
6139
+ description: "Type of specimen container.",
6140
+ valueSet: "http://hl7.org/fhir/ValueSet/specimen-container-type"
6141
+ }
6142
+ },
6143
+ {
6144
+ id: "Specimen.container.capacity",
6145
+ path: "Specimen.container.capacity",
6146
+ definition: "The capacity (volume or other measure) the container may contain.",
6147
+ min: 0,
6148
+ max: "1",
6149
+ type: [
6150
+ {
6151
+ code: "Quantity"
6152
+ }
6153
+ ]
6154
+ },
6155
+ {
6156
+ id: "Specimen.container.specimenQuantity",
6157
+ path: "Specimen.container.specimenQuantity",
6158
+ definition: "The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.",
6159
+ min: 0,
6160
+ max: "1",
6161
+ type: [
6162
+ {
6163
+ code: "Quantity"
6164
+ }
6165
+ ]
6166
+ },
6167
+ {
6168
+ id: "Specimen.container.additive[x]",
6169
+ path: "Specimen.container.additive[x]",
6170
+ definition: "Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.",
6171
+ min: 0,
6172
+ max: "1",
6173
+ type: [
6174
+ {
6175
+ code: "CodeableConcept"
6176
+ },
6177
+ {
6178
+ code: "Reference",
6179
+ targetProfile: [
6180
+ "http://hl7.org/fhir/StructureDefinition/Substance"
6181
+ ]
6182
+ }
6183
+ ],
6184
+ binding: {
6185
+ description: "Substance added to specimen container.",
6186
+ valueSet: "http://terminology.hl7.org/ValueSet/v2-0371"
6187
+ }
6188
+ },
6189
+ {
6190
+ id: "Specimen.condition",
6191
+ path: "Specimen.condition",
6192
+ definition: "A mode or state of being that describes the nature of the specimen.",
6193
+ min: 0,
6194
+ max: "*",
6195
+ type: [
6196
+ {
6197
+ code: "CodeableConcept"
6198
+ }
6199
+ ],
6200
+ binding: {
6201
+ description: "Codes describing the state of the specimen.",
6202
+ valueSet: "http://terminology.hl7.org/ValueSet/v2-0493"
6203
+ }
6204
+ },
6205
+ {
6206
+ id: "Specimen.note",
6207
+ path: "Specimen.note",
6208
+ definition: "To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen).",
6209
+ min: 0,
6210
+ max: "*",
6211
+ type: [
6212
+ {
6213
+ code: "Annotation"
6214
+ }
6215
+ ]
6216
+ }
6217
+ ]
6218
+ }
5551
6219
  }
5552
6220
  ];
5553
6221
 
@@ -5680,7 +6348,7 @@
5680
6348
  },
5681
6349
  };
5682
6350
 
5683
- /*! *****************************************************************************
6351
+ /******************************************************************************
5684
6352
  Copyright (c) Microsoft Corporation.
5685
6353
 
5686
6354
  Permission to use, copy, modify, and/or distribute this software for any
@@ -5708,7 +6376,7 @@
5708
6376
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
5709
6377
  }
5710
6378
 
5711
- /*! *****************************************************************************
6379
+ /******************************************************************************
5712
6380
  Copyright (c) Microsoft Corporation.
5713
6381
 
5714
6382
  Permission to use, copy, modify, and/or distribute this software for any
@@ -8547,6 +9215,7 @@
8547
9215
  mockRepo.createResource(HomerObservation4);
8548
9216
  mockRepo.createResource(HomerObservation5);
8549
9217
  mockRepo.createResource(HomerObservation6);
9218
+ mockRepo.createResource(HomerSimpsonSpecimen);
8550
9219
  mockRepo.createResource(TestOrganization);
8551
9220
  mockRepo.createResource(DifferentOrganization);
8552
9221
  mockRepo.createResource(ExampleQuestionnaire);
@@ -8593,7 +9262,7 @@
8593
9262
  return mockRepo.readResource(resourceType, id);
8594
9263
  }
8595
9264
  else if (resourceType) {
8596
- return mockRepo.search(core.parseSearchDefinition(new URL(url, 'https://example.com/')));
9265
+ return mockRepo.search(core.parseSearchDefinition(url));
8597
9266
  }
8598
9267
  }
8599
9268
  else if (method === 'PUT') {
@@ -8653,6 +9322,7 @@
8653
9322
  exports.HomerServiceRequest = HomerServiceRequest;
8654
9323
  exports.HomerSimpson = HomerSimpson;
8655
9324
  exports.HomerSimpsonPreviousVersion = HomerSimpsonPreviousVersion;
9325
+ exports.HomerSimpsonSpecimen = HomerSimpsonSpecimen;
8656
9326
  exports.MockClient = MockClient;
8657
9327
  exports.PatientSearchParameters = PatientSearchParameters;
8658
9328
  exports.TestOrganization = TestOrganization;