Exemplo n.º 1
0
        public void HandleReferenceParam()
        {
            var p1 = new ReferenceValue("2");

            Assert.AreEqual("2", p1.Value);

            var p2 = new ReferenceValue("http://server.org/fhir/Patient/1");

            Assert.AreEqual("http://server.org/fhir/Patient/1", p2.Value);

            var crit = Criterium.Parse(@"paramX=http://server.org/\$4/fhir/Patient/1");
            var p3   = ((UntypedValue)crit.Operand).AsReferenceValue();

            Assert.AreEqual("http://server.org/$4/fhir/Patient/1", p3.Value);
        }
Exemplo n.º 2
0
		public void HandleReferenceParam()
		{
			var p1 = new ReferenceValue("2");
			Assert.AreEqual("2", p1.Value);

			var p2 = new ReferenceValue("http://server.org/fhir/Patient/1");
			Assert.AreEqual("http://server.org/fhir/Patient/1", p2.Value);

			var crit = Criterium.Parse(@"paramX=http://server.org/\$4/fhir/Patient/1");
			var p3 = ((UntypedValue)crit.Operand).AsReferenceValue();
			Assert.AreEqual("http://server.org/$4/fhir/Patient/1", p3.Value);
		}
Exemplo n.º 3
0
 public ReferenceValue AsReferenceValue()
 {
     return(ReferenceValue.Parse(Value));
 }