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