Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Hl7.Fhir.Support.Poco/Model/Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ public virtual bool IsExactly(IDeepComparable other)
return true;
}



/// <summary>
/// Checks whether the element is matched by pattern ("other"). If the checked pattern has a value, the element must have that value as well. A pattern of "null" will always return true.
/// </summary>
/// <param name="other">The pattern that the element is supposed to match</param>
/// <returns>Whether the element is matched by the pattern ("other")</returns>
public virtual bool Matches(IDeepComparable other)
{
var otherT = other as Base;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public override IDeepCopyable CopyTo(IDeepCopyable other)
return dest;
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as BackboneElement;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/BackboneType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public override IDeepCopyable CopyTo(IDeepCopyable other)
return dest;
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as BackboneType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new CodeableConcept());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as CodeableConcept;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/Coding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new Coding());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as Coding;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/ContactDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new ContactDetail());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as ContactDetail;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/ContactPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new ContactPoint());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as ContactPoint;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/DataType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public override IDeepCopyable CopyTo(IDeepCopyable other)
return dest;
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as DataType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public override IDeepCopyable CopyTo(IDeepCopyable other)
return dest;
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as DomainResource;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/Identifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new Identifier());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as Identifier;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/Meta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new Meta());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as Meta;
Expand Down
2 changes: 2 additions & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/OperationOutcome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new IssueComponent());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as IssueComponent;
Expand Down Expand Up @@ -593,6 +594,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new OperationOutcome());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as OperationOutcome;
Expand Down
2 changes: 2 additions & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/Parameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new ParameterComponent());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as ParameterComponent;
Expand Down Expand Up @@ -253,6 +254,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new Parameters());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as Parameters;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/Period.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new Period());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as Period;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/Quantity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new Quantity());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as Quantity;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/Range.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new Range());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as Range;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/Resource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public override IDeepCopyable CopyTo(IDeepCopyable other)
return dest;
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as Resource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new ResourceReference());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as ResourceReference;
Expand Down
1 change: 1 addition & 0 deletions src/Hl7.Fhir.Support.Poco/Model/Generated/UsageContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public override IDeepCopyable DeepCopy()
return CopyTo(new UsageContext());
}

///<inheritdoc />
public override bool Matches(IDeepComparable other)
{
var otherT = other as UsageContext;
Expand Down